Nix : Add Work.
This commit is contained in:
parent
a494af9de5
commit
a28cbd7319
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
../Common.nix
|
||||
../PowersaveAmd.nix
|
||||
../AmdGpu.nix
|
||||
../Print.nix
|
||||
../Gnome.nix
|
||||
../Voronind.nix
|
||||
|
|
41
.config/linux/nix/work/configuration.nix
Normal file
41
.config/linux/nix/work/configuration.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../Common.nix
|
||||
../PowersaveIntel.nix
|
||||
../Powerlimit.nix
|
||||
../Print.nix
|
||||
../Gnome.nix
|
||||
../Voronind.nix
|
||||
../Flatpak.nix
|
||||
../DockerRootless.nix
|
||||
../Sshd.nix
|
||||
];
|
||||
|
||||
# Network.
|
||||
networking.hostName = "desktop";
|
||||
|
||||
# Filesystems.
|
||||
fileSystems."/storage/hot" = {
|
||||
device = "/dev/storage/hot";
|
||||
fsType = "ext4";
|
||||
options = [ "nofail" ];
|
||||
};
|
||||
|
||||
fileSystems."/storage/cold_1" = {
|
||||
device = "/dev/storage/cold_1";
|
||||
fsType = "ext4";
|
||||
options = [ "noauto" "nofail" ];
|
||||
};
|
||||
|
||||
fileSystems."/storage/cold_2" = {
|
||||
device = "/dev/storage/cold_2";
|
||||
fsType = "ext4";
|
||||
options = [ "noauto" "nofail" ];
|
||||
};
|
||||
|
||||
# Do not touch ever.
|
||||
system.stateVersion = "23.11";
|
||||
}
|
40
.config/linux/nix/work/hardware-configuration.nix
Normal file
40
.config/linux/nix/work/hardware-configuration.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
# 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" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/b3bb5358-c7f3-49db-8e03-593a66976484";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-4d9997f0-599a-4039-9175-e46c597f0c6a".device = "/dev/disk/by-uuid/4d9997f0-599a-4039-9175-e46c597f0c6a";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/8816-05DE";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Reference in a new issue