diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 52 |
1 files changed, 41 insertions, 11 deletions
@@ -10,16 +10,44 @@ inputs.nixpkgs.follows = "nixpkgs-unstable"; }; - # hyprland.url = "github:hyprwm/Hyprland"; + hyprland.url = "github:hyprwm/Hyprland"; }; - # outputs = { nixpkgs, nixpkgs-unstable, home-manager, hyprland, ... }: { - outputs = { nixpkgs, nixpkgs-unstable, home-manager, ... }: { + outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, hyprland, ... }: { + # outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }: let + # system = "x86_64-linux"; + + # defFlakeSystem = baseCfg: nixpkgs.lib.nixosSystem { + # # defFlakeSystem = nixpkgs.lib.nixosSystem { + + # pkgs = import nixpkgs { + # inherit system; + # config.allowUnfree = true; + # }; + # pkgsUnstable = import nixpkgs-unstable { + # inherit system; + # config.allowUnfree = true; + # }; + + # modules = [({ ... }: { + # imports = [ + # baseCfg + # home-manager.nixosModules.home-manager + # { + # # home-manager.useGlobalPkgs = true; + # home-manager.useUserpackages = true; + # } + # ]; + # # Let 'nixos-version --json' know the Git revision of this flake. + # system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; + # nix.registry.nixpkgs.flake = nixpkgs; + # })]; + # }; + # in { nixosConfigurations = { nixos-zenbook = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; modules = [ ./machines/zenbook/configuration.nix @@ -28,15 +56,17 @@ # Default users ./modules/user-profiles/defin.nix - home-manager.nixosModules.home-manager { + imports = [ + home-manager.nixosModules.home-manager { - # home-manager.useGlobalPkgs = true; - home-manager.useUserpackages = true; - home-manager.users.defin = import ./home-manager/home.nix; + # 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 - } + # Optionally, use home-manager.extraSpecialArgs to pass + # arguments to home.nix + } + ] # hyprland.homeManagerModules.default {wayland.windowManager.hyprland.enable = true;} ./modules/hyprland.nix |
