port to flakes
This commit is contained in:
parent
deaa4fb75c
commit
2d9150098e
76 changed files with 721 additions and 315 deletions
69
nixos/configurations.nix
Normal file
69
nixos/configurations.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ self
|
||||
, nixpkgs
|
||||
, nixosSystem
|
||||
, home-manager
|
||||
, nixos-hardware
|
||||
}:
|
||||
let adapterModule = {
|
||||
imports = [ ./modules ];
|
||||
nix.nixPath = [
|
||||
"home-manager=${home-manager}"
|
||||
"nixpkgs=${nixpkgs}"
|
||||
"dadada=${self}"
|
||||
];
|
||||
nix.registry = {
|
||||
home-manager.flake = home-manager;
|
||||
nixpkgs.flake = nixpkgs;
|
||||
dadada.flake = self;
|
||||
};
|
||||
nix.binaryCachePublicKeys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"gorgon:eEE/PToceRh34UnnoFENERhk89dGw5yXOpJ2CUbfL/Q="
|
||||
];
|
||||
nix.requireSignedBinaryCaches = true;
|
||||
nix.useSandbox = true;
|
||||
nixpkgs.overlays = (nixpkgs.lib.attrValues self.overlays);
|
||||
};
|
||||
in
|
||||
{
|
||||
gorgon = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
adapterModule
|
||||
nixos-hardware.nixosModules.lenovo-thinkpad-t14s-amd-gen1
|
||||
#home-manager.nixosModules.home-manager
|
||||
#{
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
# home-manager.users.dadada = self.hmConfigurations.home;
|
||||
#}
|
||||
./modules/profiles/laptop.nix
|
||||
./gorgon/configuration.nix
|
||||
];
|
||||
};
|
||||
ifrit = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
adapterModule
|
||||
./modules/profiles/server.nix
|
||||
./ifrit/configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
surgat = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
adapterModule
|
||||
./modules/profiles/server.nix
|
||||
./surgat/configuration.nix
|
||||
];
|
||||
};
|
||||
pruflas = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
adapterModule
|
||||
./modules/profiles/server.nix
|
||||
./pruflas/configuration.nix
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue