whoops
This commit is contained in:
parent
351356d575
commit
f66b6aded8
66 changed files with 273 additions and 4216 deletions
94
hosts/default.nix
Normal file
94
hosts/default.nix
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flake.nixosConfigurations =
|
||||
let
|
||||
# shorten paths
|
||||
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||
|
||||
homeImports = import "${self}/home/profiles";
|
||||
|
||||
mod = "${self}/system";
|
||||
# get the basic config to build on top of
|
||||
inherit (import mod) base;
|
||||
|
||||
# get these into the module system
|
||||
specialArgs = { inherit inputs self; };
|
||||
in
|
||||
{
|
||||
persephone = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = base ++ [
|
||||
./persephone
|
||||
"${mod}/core/lanzaboote.nix"
|
||||
|
||||
"${mod}/programs/gamemode.nix"
|
||||
"${mod}/programs/hyprland"
|
||||
"${mod}/programs/games.nix"
|
||||
|
||||
"${mod}/network/syncthing.nix"
|
||||
|
||||
"${mod}/services/kanata"
|
||||
"${mod}/services/gnome-services.nix"
|
||||
"${mod}/services/location.nix"
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
users.mihai.imports = homeImports."mihai@io";
|
||||
extraSpecialArgs = specialArgs;
|
||||
backupFileExtension = ".hm-backup";
|
||||
};
|
||||
}
|
||||
|
||||
inputs.agenix.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
hades = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = base ++ [
|
||||
./hades
|
||||
"${mod}/hardware/ddcci.nix"
|
||||
|
||||
"${mod}/programs/gamemode.nix"
|
||||
"${mod}/programs/hyprland"
|
||||
"${mod}/programs/games.nix"
|
||||
|
||||
"${mod}/network/syncthing.nix"
|
||||
|
||||
"${mod}/services/kanata"
|
||||
"${mod}/services/gnome-services.nix"
|
||||
"${mod}/services/location.nix"
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
users.mihai.imports = homeImports."mihai@io";
|
||||
extraSpecialArgs = specialArgs;
|
||||
backupFileExtension = ".hm-backup";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
nixos = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
./wsl
|
||||
"${mod}/core/users.nix"
|
||||
"${mod}/nix"
|
||||
"${mod}/programs/zsh.nix"
|
||||
"${mod}/programs/home-manager.nix"
|
||||
{
|
||||
home-manager = {
|
||||
users.mihai.imports = homeImports.server;
|
||||
extraSpecialArgs = specialArgs;
|
||||
backupFileExtension = ".hm-backup";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue