fixes
This commit is contained in:
parent
dc5b3c7285
commit
32c30aae88
@ -4,10 +4,10 @@
|
||||
set -e
|
||||
|
||||
CONFIG_FOLDER="$(dirname "$(pwd)")"
|
||||
DEVICE_NAME=NixOS-VM
|
||||
MAX_JOBS=4
|
||||
SWAP_SIZE=2GiB
|
||||
NIXOS_COMMIT="432fc2d9a67f92e05438dff5fdc2b39d33f77997"
|
||||
DEVICE_NAME=Dell-Laptop
|
||||
MAX_JOBS=8
|
||||
SWAP_SIZE=8GiB
|
||||
NIXOS_COMMIT="1905f5f2e55e0db0bb6244cfe62cb6c0dbda391d"
|
||||
USE_ECNRYPTION=false
|
||||
|
||||
clean_stdin() {
|
||||
@ -239,4 +239,4 @@ fi
|
||||
|
||||
pprint "Copy config to destination system"
|
||||
mkdir -p /mnt/home/alukard/nixos-config
|
||||
cp -aT $CONFIG_FOLDER /mnt/home/alukard/nixos-config
|
||||
cp -aT $CONFIG_FOLDER /mnt/home/alukard/nixos-config
|
||||
|
@ -8,56 +8,55 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "rpool/system/root";
|
||||
fsType = "zfs";
|
||||
{ device = "/dev/disk/by-uuid/27bedbc3-b6c7-43b1-ba60-792a755ba01f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "rpool/local/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/var" =
|
||||
{ device = "rpool/system/var";
|
||||
fsType = "zfs";
|
||||
{ device = "/dev/disk/by-uuid/27bedbc3-b6c7-43b1-ba60-792a755ba01f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "rpool/user/home";
|
||||
fsType = "zfs";
|
||||
{ device = "/dev/disk/by-uuid/27bedbc3-b6c7-43b1-ba60-792a755ba01f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||||
};
|
||||
|
||||
fileSystems."/bittorrent" =
|
||||
{ device = "rpool/local/bittorrent";
|
||||
fsType = "zfs";
|
||||
fileSystems."/var" =
|
||||
{ device = "/dev/disk/by-uuid/27bedbc3-b6c7-43b1-ba60-792a755ba01f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
|
||||
};
|
||||
|
||||
fileSystems."/home/alukard/.libvirt" =
|
||||
{ device = "rpool/local/libvirt";
|
||||
fsType = "zfs";
|
||||
fileSystems."/media/bittorrent" =
|
||||
{ device = "/dev/disk/by-uuid/27bedbc3-b6c7-43b1-ba60-792a755ba01f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=bittorrent" "nodatacow" "ssd" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/4F6D-537A";
|
||||
{ device = "/dev/disk/by-uuid/B0FE-7362";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/dev/disk/by-partuuid/3043db40-1d67-47f0-b6d6-d8f1a68b47c6";
|
||||
device = "/dev/disk/by-partuuid/bd1405c3-eab1-465e-a83b-0781b430a5bb";
|
||||
randomEncryption.enable = true;
|
||||
}
|
||||
];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
networking.hostId = "d107d6c6";
|
||||
boot.zfs.devNodes = "/dev/disk/by-partuuid/8454c73b-e50a-407c-86d7-e970d0fdb09e";
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.kernelParams = [ "zfs.zfs_arc_max=4294967296" ];
|
||||
networking.hostId = "3efba84e";
|
||||
boot.initrd.supportedFilesystems = [ "btrfs" ];
|
||||
boot.supportedFilesystems = [ "btrfs" ];
|
||||
}
|
||||
|
BIN
misc/Passwords.kdbx
Executable file → Normal file
BIN
misc/Passwords.kdbx
Executable file → Normal file
Binary file not shown.
@ -45,6 +45,7 @@ in {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" "sound.target" ];
|
||||
partOf = [ "pulseeffects.service" ];
|
||||
path = [ pkgs.zsh pkgs.pass-nodmenu ];
|
||||
serviceConfig = {
|
||||
ExecStart =
|
||||
"${cfg.package}/bin/spotifyd --no-daemon --config-path ${configFile}";
|
||||
@ -65,7 +66,7 @@ in {
|
||||
settings = {
|
||||
global = {
|
||||
username = "alukard.files@gmail.com";
|
||||
password_cmd = "${pkgs.coreutils}/bin/cat ${config.secrets.spotify.decrypted}";
|
||||
password_cmd = "pass spotify";
|
||||
backend = "pulseaudio";
|
||||
volume_controller = "softvol";
|
||||
device_name = "nix";
|
||||
|
@ -4,6 +4,7 @@ with config.deviceSpecific; {
|
||||
services.acpid.enable = true;
|
||||
services.acpid.logEvents = false;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
services.redshift = {
|
||||
@ -69,11 +70,11 @@ with config.deviceSpecific; {
|
||||
};
|
||||
};
|
||||
|
||||
services.undervolt = lib.mkIf (config.device == "Dell-Laptop") {
|
||||
enable = true;
|
||||
coreOffset = -110; # -120
|
||||
gpuOffset = -46; # -54
|
||||
};
|
||||
# services.undervolt = lib.mkIf (config.device == "Dell-Laptop") {
|
||||
# enable = true;
|
||||
# coreOffset = -110; # -120
|
||||
# gpuOffset = -46; # -54
|
||||
# };
|
||||
|
||||
services.thermald.enable = isLaptop;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user