aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-07-20 00:49:49 -0700
committerPreston Pan <preston@nullring.xyz>2024-07-20 00:49:49 -0700
commit82ee51a8e9ff67054788a86c501dad99ed5b070f (patch)
treefd31bbc65a777f2950e9f4d225061f048ce4a67e /flake.nix
parent5e0544dad7d317607de0be9123fb4ca484027c87 (diff)
refactor existing code
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix27
1 files changed, 17 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix
index 76db1e2..52f6ad7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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;
+ };
}
];
};