Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07b5e8d344 | ||
|
|
539465abf4 |
4 changed files with 65 additions and 14 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";
|
||||||
|
|
|
||||||
33
flake.nix
33
flake.nix
|
|
@ -24,17 +24,38 @@
|
||||||
nix-maid,
|
nix-maid,
|
||||||
mangowm,
|
mangowm,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
mods = [
|
||||||
|
nix-maid.nixosModules.default
|
||||||
|
nixcord.nixosModules.nixcord
|
||||||
|
mangowm.nixosModules.mango
|
||||||
|
./configuration.nix
|
||||||
|
./maid.nix
|
||||||
|
];
|
||||||
|
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 = [
|
||||||
nixcord.nixosModules.nixcord
|
({ config, ... }: {
|
||||||
nix-maid.nixosModules.default
|
imports = [ ./hosts/desktop/hardware-configuration.nix ];
|
||||||
mangowm.nixosModules.mango
|
networking.hostName = "nerv";
|
||||||
./configuration.nix
|
})
|
||||||
./maid.nix
|
]
|
||||||
];
|
++ 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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
33
hosts/laptop/hardware-configuration.nix
Normal file
33
hosts/laptop/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/629196f0-60e9-476e-b294-0d22fd7279c4";
|
||||||
|
fsType = "xfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2474-C1E6";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/166d1fb4-527f-4fda-a6bf-85aad4a4f917"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue