moved aphelion to zfs
This commit is contained in:
@@ -66,11 +66,10 @@
|
|||||||
./hosts/generic/unfree_allow.nix
|
./hosts/generic/unfree_allow.nix
|
||||||
./hosts/generic/plymouth.nix
|
./hosts/generic/plymouth.nix
|
||||||
./hosts/Aphelion/hardware-Aphelion.nix
|
./hosts/Aphelion/hardware-Aphelion.nix
|
||||||
./hosts/Aphelion/nvidia.nix
|
|
||||||
./hosts/Aphelion/sunshine.nix
|
./hosts/Aphelion/sunshine.nix
|
||||||
./hosts/Aphelion/nfs.nix
|
./hosts/Aphelion/nfs.nix
|
||||||
./misc/disable_suspend.nix
|
./misc/disable_suspend.nix
|
||||||
./desktop/gnome.nix
|
./desktop/kde.nix
|
||||||
./home/yaroslav/steam.nix
|
./home/yaroslav/steam.nix
|
||||||
./hosts/generic/teamspeak.nix
|
./hosts/generic/teamspeak.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|||||||
@@ -8,51 +8,32 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" ];
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
|
||||||
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ #device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2";
|
{ device = "none";
|
||||||
#fsType = "btrfs";
|
|
||||||
#options = [ "subvol=@nixos" ];
|
|
||||||
device = "none";
|
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
options = [ "defaults" "size=8G" "mode=755" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=@nix" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix/persist/home" =
|
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd" "subvol=@home-persist" ];
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/595C-784B";
|
{ device = "/dev/disk/by-uuid/278A-0FB0";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# fileSystems."/home/yaroslav" =
|
fileSystems."/nix" =
|
||||||
# { device = "none";
|
{ device = "aphelion-zroot/nix";
|
||||||
# fsType = "tmpfs";
|
fsType = "zfs";
|
||||||
# options = [ "defaults" "size=1G" "uid=1000" "gid=100" ];
|
|
||||||
# };
|
|
||||||
fileSystems."/vol/Trash" = {
|
|
||||||
device = "/dev/mapper/yarikpc-trash";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "defaults" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix/persist/home" =
|
||||||
|
{ device = "aphelion-zroot/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
@@ -60,44 +41,11 @@
|
|||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# 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`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp12s0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp11s0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.lxdbr0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.veth9787cb37.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
|
|
||||||
boot.initrd.systemd.tmpfiles.settings = {
|
|
||||||
"100-mountpoint-Trash" = {
|
|
||||||
"/vol/Trash" = {
|
|
||||||
d = {
|
|
||||||
user = "root";
|
|
||||||
mode = "0770";
|
|
||||||
group = "users";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"10-sharepoint-nfs" = {
|
|
||||||
"/share/nixos-1" = {
|
|
||||||
d = {
|
|
||||||
user = "nobody";
|
|
||||||
group = "nogroup";
|
|
||||||
mode = "0770";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 4444 ];
|
|
||||||
networking.firewall.allowedUDPPorts = [ 69 1100 ];
|
|
||||||
programs.amnezia-vpn.enable = true;
|
|
||||||
|
|
||||||
services.tftpd.enable = true;
|
|
||||||
services.tftpd.path = "/srv/pxe/tftp";
|
|
||||||
|
|
||||||
services.hardware.openrgb.enable = true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
networking.hostName = "Aphelion";
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
networking.hostName = "Aphelion";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user