first commit

This commit is contained in:
Lomig 2025-08-07 01:32:02 +02:00
commit 9532c89e63
3 changed files with 57 additions and 0 deletions

32
flake.nix Normal file
View 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 tas 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
View 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
}

View 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;
}