Switching to flakes and adding home-manager

This commit is contained in:
Lyes Saadi 2024-04-24 20:55:22 +02:00
parent 32e9c2b93c
commit 97d648948f
No known key found for this signature in database
GPG key ID: 17418538BAA17767
9 changed files with 124 additions and 26 deletions

View file

@ -1,9 +1,10 @@
{ pkgs, ... }:
{ pkgs, home-manager, ... }:
{
imports =
[
./packages.nix
home-manager.nixosModules.default
];
users.users.lyes = {
@ -16,7 +17,16 @@
};
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.lyes = { pkgs, ... }: {
imports =
[
./home.nix
];
home.username = "lyes";
home.homeDirectory = "/home/lyes";
home.stateVersion = "22.11";
};
}
}