refactor nix stuff

This commit is contained in:
Adithya 2023-05-28 22:54:11 +05:30
parent f9e71519a9
commit 799eab00e2
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 11 additions and 6 deletions

View file

@ -16,5 +16,4 @@
use-cgroups = true; use-cgroups = true;
}; };
}; };
nixpkgs.config.allowUnfree = true;
} }

View file

@ -39,13 +39,16 @@
nixosConfigurations = let nixosConfigurations = let
user = (import ./secrets.nix).users; user = (import ./secrets.nix).users;
in { in {
Skipper = nixpkgs.lib.nixosSystem { Skipper = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {allowUnfree = true;};
overlays = [(import ./packages) nixneovim.overlays.default];
};
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
{ {
nixpkgs.overlays = [(import ./packages) nixneovim.overlays.default];
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "x86_64-linux";
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
} }
@ -71,12 +74,15 @@
} }
]; ];
}; };
Rico2 = nixpkgs.lib.nixosSystem { Rico2 = nixpkgs.lib.nixosSystem rec {
system = "aarch64-linux"; system = "aarch64-linux";
pkgs = import nixpkgs {
inherit system;
config = {allowUnfree = true;};
};
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
{ {
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "aarch64-linux";
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
} }
./common ./common