diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -16,23 +16,26 @@ system = "x86_64-linux"; - # defFlakeSystem = baseCfg: nixpkgs.lib.nixosSystem { - defFlakeSystem = nixpkgs.lib.nixosSystem { + defFlakeSystem = baseCfg: nixpkgs.lib.nixosSystem { + # defFlakeSystem = nixpkgs.lib.nixosSystem { pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; - pkgsUnstable = import nixpkgs-unstable { + unstable = import nixpkgs-unstable { inherit system; config.allowUnfree = true; }; modules = [({ ... }: { imports = [ - # baseCfg - home-manager.nixosModules.home-manager - { + baseCfg + home-manager.nixosModules.home-manager { # home-manager.useGlobalPkgs = true; home-manager.useUserpackages = true; + # home-manager.users.defin = import ./home-manager/home.nix { inherit pkgs unstable; }; + home-manager.users.defin = import ./home-manager/home.nix; + # Optionally, use home-manager.extraSpecialArgs to pass + # arguments to home.nix } ]; # Let 'nixos-version --json' know the Git revision of this flake. @@ -53,15 +56,6 @@ # Default users ./modules/user-profiles/defin.nix - home-manager.nixosModules.home-manager { - # home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.users.defin = import ./home-manager/home.nix; - - # Optionally, use home-manager.extraSpecialArgs to pass - # arguments to home.nix - } - hyprland.homeManagerModules.default {wayland.windowManager.hyprland.enable = true;} ./modules/hyprland.nix |
