refactor: add system configuration builder function
This commit is contained in:
parent
5c63e7ef7c
commit
13916728ac
1 changed files with 11 additions and 7 deletions
18
flake.nix
18
flake.nix
|
@ -9,13 +9,11 @@
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
args = {inherit self inputs;};
|
args = {inherit self inputs;};
|
||||||
in {
|
mkSystem = hostname:
|
||||||
# System Configurations
|
nixpkgs.lib.nixosSystem {
|
||||||
nixosConfigurations = {
|
|
||||||
nemesis = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = args;
|
specialArgs = args;
|
||||||
modules = [
|
modules = [
|
||||||
./systems/nemesis.nix
|
./systems/${hostname}.nix
|
||||||
|
|
||||||
# Add the home-manager user
|
# Add the home-manager user
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
@ -33,8 +31,14 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
in {
|
||||||
|
# System Configurations
|
||||||
|
nixosConfigurations = builtins.listToAttrs [
|
||||||
|
{
|
||||||
|
name = "nemesis";
|
||||||
|
value = mkSystem "nemesis";
|
||||||
|
}
|
||||||
|
];
|
||||||
# Packages
|
# Packages
|
||||||
packages.x86_64-linux.nvf =
|
packages.x86_64-linux.nvf =
|
||||||
(inputs.nvf.lib.neovimConfiguration {
|
(inputs.nvf.lib.neovimConfiguration {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue