diff options
author | Preston Pan <preston@nullring.xyz> | 2024-07-20 00:49:49 -0700 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-07-20 00:49:49 -0700 |
commit | 82ee51a8e9ff67054788a86c501dad99ed5b070f (patch) | |
tree | fd31bbc65a777f2950e9f4d225061f048ce4a67e /flake.nix | |
parent | 5e0544dad7d317607de0be9123fb4ca484027c87 (diff) |
refactor existing code
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -9,17 +9,19 @@ url = "github:nix-community/home-manager/release-23.11"; inputs.nixpkgs.follows = "nixpkgs"; }; - nur.url = "github:nix-community/NUR"; + disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nur.url = "github:nix-community/NUR"; wallpapers.url = "github:ret2pop/wallpapers"; sops-nix.url = "github:Mic92/sops-nix"; scripts.url = "github:ret2pop/scripts"; }; - outputs = { self, nixpkgs, home-manager, nur, disko, wallpapers, sops-nix, scripts, ... }@attrs: { + outputs = { nixpkgs, home-manager, nur, disko, ... }@attrs: { nixosConfigurations = { live = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -41,13 +43,16 @@ disko.nixosModules.disko home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.extraSpecialArgs = attrs; - home-manager.useUserPackages = true; - home-manager.users.preston = import ./home.nix; + home-manager = { + useGlobalPkgs = true; + extraSpecialArgs = attrs; + useUserPackages = true; + users.preston = import ./home.nix; + }; } ]; }; + continuity = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; @@ -67,10 +72,12 @@ disko.nixosModules.disko home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.extraSpecialArgs = attrs; - home-manager.useUserPackages = true; - home-manager.users.preston = import ./home.nix; + home-manager = { + useGlobalPkgs = true; + extraSpecialArgs = attrs; + useUserPackages = true; + users.preston = import ./home.nix; + }; } ]; }; |