first commit
This commit is contained in:
commit
9532c89e63
3 changed files with 57 additions and 0 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
10
home/pennsardin.nix
Normal file
10
home/pennsardin.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.username = "lomig";
|
||||||
|
home.homeDirectory = "/home/lomig";
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
home.stateVersion = "25.05"; # ou ton actuelle
|
||||||
|
}
|
||||||
|
|
||||||
15
hosts/pennsardin/configuration.nix
Normal file
15
hosts/pennsardin/configuration.nix
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue