structure hosts
This commit is contained in:
parent
539465abf4
commit
07b5e8d344
2 changed files with 32 additions and 31 deletions
|
|
@ -1,12 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = lib.mkIf (config.networking.hostName == "nerv") [ "nvidia" ];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = lib.mkIf (config.networking.hostName == "nerv") {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = true;
|
open = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.new_feature;
|
package = config.boot.kernelPackages.nvidiaPackages.new_feature;
|
||||||
|
|
@ -16,7 +13,7 @@
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.limine = {
|
boot.loader.limine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraEntries = ''
|
extraEntries = lib.mkIf (config.networking.hostName == "nerv") ''
|
||||||
/Windows 11
|
/Windows 11
|
||||||
protocol: efi
|
protocol: efi
|
||||||
path: uuid(6E25-7E8D):/EFI/Microsoft/Boot/bootmgfw.efi
|
path: uuid(6E25-7E8D):/EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
|
|
@ -24,7 +21,7 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
networking.hostName = "nerv";
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
|
||||||
50
flake.nix
50
flake.nix
|
|
@ -24,34 +24,38 @@
|
||||||
nix-maid,
|
nix-maid,
|
||||||
mangowm,
|
mangowm,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
mods = [
|
mods = [
|
||||||
nixcord.nixosModules.nixcord
|
nix-maid.nixosModules.default
|
||||||
mangowm.nixosModules.mango
|
nixcord.nixosModules.nixcord
|
||||||
./configuration.nix
|
mangowm.nixosModules.mango
|
||||||
./maid.nix
|
./configuration.nix
|
||||||
];
|
./maid.nix
|
||||||
in
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/desktop/hardware-configuration.nix
|
({ config, ... }: {
|
||||||
] ++ mods;
|
imports = [ ./hosts/desktop/hardware-configuration.nix ];
|
||||||
({ config, ...}: {
|
networking.hostName = "nerv";
|
||||||
networking.hostname = "nerv";
|
})
|
||||||
});
|
]
|
||||||
|
++ mods;
|
||||||
|
};
|
||||||
|
|
||||||
|
nixosConfigurations.seele = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
({ config, ... }: {
|
||||||
|
imports = [ ./hosts/laptop/hardware-configuration.nix ];
|
||||||
|
networking.hostName = "seele";
|
||||||
|
})
|
||||||
|
]
|
||||||
|
++ mods;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixosConfigurations.seele = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
./hosts/laptop/hardware-configuration.nix
|
|
||||||
] ++ mods;
|
|
||||||
({ config, ...}: {
|
|
||||||
networking.hostname = "seele";
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue