From 9532c89e633a371576c118c6884de52f44ae41b3 Mon Sep 17 00:00:00 2001 From: Lomig Date: Thu, 7 Aug 2025 01:32:02 +0200 Subject: [PATCH] first commit --- flake.nix | 32 ++++++++++++++++++++++++++++++ home/pennsardin.nix | 10 ++++++++++ hosts/pennsardin/configuration.nix | 15 ++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 flake.nix create mode 100644 home/pennsardin.nix create mode 100644 hosts/pennsardin/configuration.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..72ee031 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "Mon système NixOS flake-enabled avec Home Manager"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, home-manager, ... }: + let + system = "x86_64-linux"; # Change si t’as un ordi chelou + in { + nixosConfigurations = { + pennsardin = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + ./hosts/pennsardin/configuration.nix + + home-manager.nixosModules.home-manager + { + home-manager.useUserPackages = true; + home-manager.users.lomig = import ./home/pennsardin.nix; + } + ]; + }; + }; + }; +} + diff --git a/home/pennsardin.nix b/home/pennsardin.nix new file mode 100644 index 0000000..8c5c58b --- /dev/null +++ b/home/pennsardin.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + home.username = "lomig"; + home.homeDirectory = "/home/lomig"; + + programs.zsh.enable = true; + home.stateVersion = "25.05"; # ou ton actuelle +} + diff --git a/hosts/pennsardin/configuration.nix b/hosts/pennsardin/configuration.nix new file mode 100644 index 0000000..d6fcec4 --- /dev/null +++ b/hosts/pennsardin/configuration.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: + +{ + networking.hostName = "pennsardin"; + time.timeZone = "Europe/Paris"; + + users.users.toto = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + shell = pkgs.zsh; + }; + + services.xserver.enable = true; +} +