fix: imxyy-nix-x16
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
./nixos.nix
|
./nixos.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./home.nix
|
./home.nix
|
||||||
./virt.nix
|
|
||||||
./net.nix
|
./net.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,19 +6,14 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
btrfs = "/dev/disk/by-uuid/0404de0a-9c4d-4c98-b3e5-b8ff8115f36c";
|
btrfs = "/dev/disk/by-uuid/69ab72d4-6ced-4f70-8b5e-aa2daa8c0b6b";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
kernelModules = [ "amdgpu" ];
|
kernelModules = [ "amdgpu" ];
|
||||||
availableKernelModules = [
|
availableKernelModules = [
|
||||||
"xhci_pci"
|
"nvme" "xhci_pci" "thunderbolt" "uas" "sd_mod"
|
||||||
"ahci"
|
|
||||||
"nvme"
|
|
||||||
"usbhid"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
];
|
||||||
verbose = false;
|
verbose = false;
|
||||||
};
|
};
|
||||||
@@ -30,11 +25,6 @@ in
|
|||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"fs.file-max" = 9223372036854775807;
|
"fs.file-max" = 9223372036854775807;
|
||||||
};
|
};
|
||||||
|
|
||||||
resumeDevice = btrfs;
|
|
||||||
kernelParams = [
|
|
||||||
"resume_offset=6444127"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
services.scx.enable = true;
|
services.scx.enable = true;
|
||||||
|
|
||||||
@@ -48,9 +38,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" = {
|
fileSystems."/nix" = {
|
||||||
device = "/dev/disk/by-uuid/843c36ae-f6d0-46a1-b5c7-8ab569e1e63f";
|
device = btrfs;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd" ];
|
options = [ "compress=zstd" "subvol=nix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
my.persist.location = "/nix/persist";
|
my.persist.location = "/nix/persist";
|
||||||
@@ -59,17 +49,7 @@ in
|
|||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [
|
options = [
|
||||||
"compress=zstd"
|
"compress=zstd"
|
||||||
"subvol=persistent"
|
"subvol=persist"
|
||||||
];
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/swap" = {
|
|
||||||
device = btrfs;
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [
|
|
||||||
"compress=zstd"
|
|
||||||
"subvol=swap"
|
|
||||||
];
|
];
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
@@ -100,7 +80,7 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/B7DC-E9AC";
|
device = "/dev/disk/by-uuid/96D3-93B0";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [
|
||||||
"uid=0"
|
"uid=0"
|
||||||
@@ -110,49 +90,6 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home/${username}/Documents" = {
|
|
||||||
device = "/dev/disk/by-uuid/a4e37dcd-764a-418c-aa1c-484f1fbd4bbe";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/${username}/Downloads" = {
|
|
||||||
device = "/dev/disk/by-uuid/18717cb4-49ac-40fa-95d4-29523a458dd0";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/${username}/Videos" = {
|
|
||||||
device = "/dev/disk/by-uuid/b67bbeab-58bc-4814-b5e3-08404e78b25e";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/${username}/Pictures" = {
|
|
||||||
device = "/dev/disk/by-uuid/a31bfe7e-cc17-4bd2-af74-ae5de9be35d3";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/${username}/Music" = {
|
|
||||||
device = "//192.168.3.2/share/imxyy_soope_/Music";
|
|
||||||
fsType = "cifs";
|
|
||||||
options = [
|
|
||||||
"username=nas"
|
|
||||||
"password=nasshare"
|
|
||||||
"x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"
|
|
||||||
"nodev"
|
|
||||||
"nofail"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
"vers=3"
|
|
||||||
"rw"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
|
||||||
{
|
|
||||||
device = "/swap/swapfile";
|
|
||||||
size = 32 * 1024;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault false;
|
networking.useDHCP = lib.mkDefault false;
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||||
|
|||||||
@@ -34,58 +34,13 @@
|
|||||||
pamixer
|
pamixer
|
||||||
];
|
];
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
shellAliases = {
|
|
||||||
cageterm = "cage -m DP-2 -s -- alacritty -o font.size=20";
|
|
||||||
cagefoot = "cage -m DP-2 -s -- foot --font=monospace:size=20";
|
|
||||||
cagekitty = "cage -m DP-2 -s -- kitty -o font_size=20";
|
|
||||||
};
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
no_proxy = "192.168.3.0/24";
|
|
||||||
PATH = "/home/${username}/bin:$PATH";
|
PATH = "/home/${username}/bin:$PATH";
|
||||||
};
|
};
|
||||||
profileExtra = ''
|
|
||||||
if [ `tty` = "/dev/tty6" ]; then
|
|
||||||
clear
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.niri.settings = {
|
|
||||||
environment.STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
|
|
||||||
outputs = {
|
|
||||||
DP-2 = {
|
|
||||||
enable = true;
|
|
||||||
mode = {
|
|
||||||
width = 2560;
|
|
||||||
height = 1440;
|
|
||||||
refresh = 75.033;
|
|
||||||
};
|
|
||||||
scale = 1.25;
|
|
||||||
position = {
|
|
||||||
x = 0;
|
|
||||||
y = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
DP-3 = {
|
|
||||||
enable = true;
|
|
||||||
mode = {
|
|
||||||
width = 2560;
|
|
||||||
height = 1440;
|
|
||||||
refresh = 75.033;
|
|
||||||
};
|
|
||||||
scale = 1.25;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
my = {
|
my = {
|
||||||
autologin = {
|
|
||||||
enable = true;
|
|
||||||
user = username;
|
|
||||||
ttys = [ 6 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
cli.all.enable = true;
|
cli.all.enable = true;
|
||||||
coding.all.enable = true;
|
coding.all.enable = true;
|
||||||
@@ -142,7 +97,6 @@
|
|||||||
homedir = config.my.home.home.homeDirectory;
|
homedir = config.my.home.home.homeDirectory;
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"file://${homedir}/Documents/%E7%8F%AD%E7%BA%A7%E4%BA%8B%E5%8A%A1 班级事务"
|
|
||||||
"file://${homedir}/NAS NAS"
|
"file://${homedir}/NAS NAS"
|
||||||
"file://${homedir}/NAS/imxyy_soope_ NAS imxyy_soope_"
|
"file://${homedir}/NAS/imxyy_soope_ NAS imxyy_soope_"
|
||||||
"file://${homedir}/NAS/imxyy_soope_/OS NAS OS"
|
"file://${homedir}/NAS/imxyy_soope_/OS NAS OS"
|
||||||
@@ -151,12 +105,14 @@
|
|||||||
persist = {
|
persist = {
|
||||||
enable = true;
|
enable = true;
|
||||||
homeDirs = [
|
homeDirs = [
|
||||||
".android"
|
"Documents"
|
||||||
"Android"
|
"Downloads"
|
||||||
|
"Videos"
|
||||||
|
"Music"
|
||||||
|
"Pictures"
|
||||||
|
|
||||||
"bin"
|
"bin"
|
||||||
"workspace"
|
"workspace"
|
||||||
"Virt"
|
|
||||||
|
|
||||||
".cache"
|
".cache"
|
||||||
".local/state"
|
".local/state"
|
||||||
|
|||||||
@@ -10,8 +10,7 @@
|
|||||||
"biosdevname=0"
|
"biosdevname=0"
|
||||||
"net.ifnames=0"
|
"net.ifnames=0"
|
||||||
];
|
];
|
||||||
networking.wireless.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.wireless.userControlled = true;
|
|
||||||
|
|
||||||
sops.secrets.dae-imxyy-nix-x16 = {
|
sops.secrets.dae-imxyy-nix-x16 = {
|
||||||
sopsFile = sopsRoot + /dae-imxyy-nix-x16.dae;
|
sopsFile = sopsRoot + /dae-imxyy-nix-x16.dae;
|
||||||
@@ -40,8 +39,6 @@
|
|||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
easytier
|
easytier
|
||||||
wpa_supplicant
|
|
||||||
wpa_supplicant_gui
|
|
||||||
];
|
];
|
||||||
systemd.services."easytier" = {
|
systemd.services."easytier" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -169,4 +169,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my.persist.nixosDirs = [ "/etc/NetworkManager/system-connections" ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user