Refactor
parent
d81e168cd9
commit
27c5ec21a4
32
flake.nix
32
flake.nix
|
|
@ -58,44 +58,24 @@
|
|||
};
|
||||
in
|
||||
{
|
||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # <https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md>
|
||||
nixosConfigurations = {
|
||||
vm = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel
|
||||
disko.nixosModules.disko
|
||||
./hosts/vm/configuration.nix
|
||||
{
|
||||
environment.systemPackages = [ nvim.packages.x86_64-linux.nvim ];
|
||||
}
|
||||
];
|
||||
modules = [ ./hosts/vm/configuration.nix ];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
astyanax = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
./hosts/astyanax/configuration.nix
|
||||
{
|
||||
environment.systemPackages = [ nvim.packages.x86_64-linux.nvim ];
|
||||
}
|
||||
];
|
||||
modules = [ ./hosts/astyanax/configuration.nix ];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
work = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./home/hosts/work ];
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./home/hosts/work
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
system.stateVersion = "25.05";
|
||||
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.home-manager.nixosModules.default
|
||||
./hard.nix
|
||||
../../modules/bootloader.nix
|
||||
|
|
@ -25,6 +26,8 @@
|
|||
../../modules/ssh/hardened-openssh.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = [ inputs.nvim.packages.x86_64-linux.nvim ];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,16 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.home-manager.nixosModules.default
|
||||
./hard.nix
|
||||
./disk.nix
|
||||
|
|
@ -19,6 +26,8 @@
|
|||
../../modules/ssh/hardened-openssh.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = [ inputs.nvim.packages.x86_64-linux.nvim ];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
|
|
|
|||
Loading…
Reference in New Issue