mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
so many tests
This commit is contained in:
+7
-9
@@ -24,14 +24,12 @@ let
|
||||
self.nixosModules.software.wine
|
||||
self.nixosModules.software.beets
|
||||
self.nixosModules.desktop
|
||||
self.homeConfigurations.main.nixosModule
|
||||
self.homeConfigurations.root.nixosModule
|
||||
sops-nix.nixosModules.sops
|
||||
]
|
||||
++ builtins.attrValues inputs.self.nixosModules.extra.self;
|
||||
|
||||
fileSystems = {
|
||||
"${inputs.zeroq.dirs.therima-drive}" = {
|
||||
"${config.xlib.dirs.therima-drive}" = {
|
||||
device = "/dev/disk/by-uuid/C0A2DDEFA2DDEA44";
|
||||
fsType = "ntfs3";
|
||||
options = [
|
||||
@@ -44,7 +42,7 @@ let
|
||||
#"x-systemd.device-timeout=0"
|
||||
];
|
||||
};
|
||||
"${inputs.zeroq.dirs.vetymae-drive}" = {
|
||||
"${config.xlib.dirs.vetymae-drive}" = {
|
||||
device = "/dev/disk/by-uuid/6E04EA7F04EA49A3";
|
||||
fsType = "ntfs3";
|
||||
options = [
|
||||
@@ -58,7 +56,7 @@ let
|
||||
];
|
||||
};
|
||||
"/mnt/beets/music" = {
|
||||
device = "/home/${inputs.zeroq.devices.admin}/Music"; # "${inputs.zeroq.dirs.vetymae-drive}/Users/User/Music"
|
||||
device = "/home/${config.xlib.devices.admin}/Music"; # "${config.xlib.dirs.vetymae-drive}/Users/User/Music"
|
||||
options = [
|
||||
"bind"
|
||||
#"uid=1000"
|
||||
@@ -108,7 +106,7 @@ let
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
networking = {
|
||||
hostName = "${inputs.zeroq.devices.laptop.hostname}";
|
||||
hostName = "${config.xlib.devices.laptop.hostname}";
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = false;
|
||||
};
|
||||
@@ -137,10 +135,10 @@ let
|
||||
syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
configDir = "${inputs.zeroq.dirs.user-storage}/Syncthing/${config.system.name}"; # ${inputs.zeroq.devices.laptop.hostname}
|
||||
dataDir = "${inputs.zeroq.dirs.user-home}";
|
||||
configDir = "${config.xlib.dirs.user-storage}/Syncthing/${config.system.name}"; # ${config.xlib.devices.laptop.hostname}
|
||||
dataDir = "${config.xlib.dirs.user-home}";
|
||||
group = "users";
|
||||
user = "${inputs.zeroq.devices.admin}";
|
||||
user = "${config.xlib.devices.admin}";
|
||||
};
|
||||
pipewire = {
|
||||
enable = lib.mkDefault true;
|
||||
|
||||
+10
-9
@@ -24,8 +24,9 @@ let
|
||||
self.nixosModules.software.beets
|
||||
#self.nixosModules.extra.self.fingerprint
|
||||
self.nixosModules.desktop
|
||||
self.homeConfigurations.main.nixosModule
|
||||
self.homeConfigurations.root.nixosModule
|
||||
self.homeConfigurations.default.nixosModule
|
||||
# self.homeConfigurations.main.nixosModule
|
||||
# self.homeConfigurations.root.nixosModule
|
||||
];
|
||||
|
||||
sops = {
|
||||
@@ -34,7 +35,7 @@ let
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"${inputs.zeroq.dirs.therima-drive}" = {
|
||||
"${config.xlib.dirs.therima-drive}" = {
|
||||
device = "/dev/disk/by-uuid/C0A2DDEFA2DDEA44";
|
||||
fsType = "ntfs3";
|
||||
options = [
|
||||
@@ -47,7 +48,7 @@ let
|
||||
#"x-systemd.device-timeout=0"
|
||||
];
|
||||
};
|
||||
"${inputs.zeroq.dirs.vetymae-drive}" = {
|
||||
"${config.xlib.dirs.vetymae-drive}" = {
|
||||
device = "/dev/disk/by-uuid/38D63C6ED63C2E8E";
|
||||
fsType = "ntfs3";
|
||||
options = [
|
||||
@@ -61,7 +62,7 @@ let
|
||||
];
|
||||
};
|
||||
"/mnt/beets/music" = {
|
||||
device = "/home/${inputs.zeroq.devices.admin}/Music"; # "${inputs.zeroq.dirs.vetymae-drive}/Users/User/Music"
|
||||
device = "/home/${config.xlib.devices.admin}/Music"; # "${config.xlib.dirs.vetymae-drive}/Users/User/Music"
|
||||
options = [
|
||||
"bind"
|
||||
#"uid=1000"
|
||||
@@ -93,7 +94,7 @@ let
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
networking = {
|
||||
hostName = "${inputs.zeroq.devices.laptop.hostname}";
|
||||
hostName = "${config.xlib.devices.laptop.hostname}";
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = false;
|
||||
};
|
||||
@@ -123,10 +124,10 @@ let
|
||||
syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
configDir = "${inputs.zeroq.dirs.user-storage}/Syncthing/${config.system.name}"; # ${inputs.zeroq.devices.laptop.hostname}
|
||||
dataDir = "${inputs.zeroq.dirs.user-home}";
|
||||
configDir = "${config.xlib.dirs.user-storage}/Syncthing/${config.system.name}"; # ${config.xlib.devices.laptop.hostname}
|
||||
dataDir = "${config.xlib.dirs.user-home}";
|
||||
group = "users";
|
||||
user = "${inputs.zeroq.devices.admin}";
|
||||
user = "${config.xlib.devices.admin}";
|
||||
};
|
||||
pipewire = {
|
||||
enable = lib.mkDefault true;
|
||||
|
||||
+20
-20
@@ -43,7 +43,7 @@ let
|
||||
|
||||
users = {
|
||||
users = {
|
||||
"${inputs.zeroq.devices.admin}" = {
|
||||
"${config.xlib.devices.admin}" = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P root@sapphira"
|
||||
];
|
||||
@@ -53,7 +53,7 @@ let
|
||||
|
||||
fileSystems = {
|
||||
# External drive
|
||||
"${inputs.zeroq.dirs.server-home}" = {
|
||||
"${config.xlib.dirs.server-home}" = {
|
||||
device = "/dev/disk/by-uuid/37e53ebc-5343-a94d-9fe2-0ca39e13a8de";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
@@ -74,7 +74,7 @@ let
|
||||
};
|
||||
# beets
|
||||
"/mnt/beets/music" = {
|
||||
device = "${inputs.zeroq.dirs.server-home}/Music";
|
||||
device = "${config.xlib.dirs.server-home}/Music";
|
||||
options = [
|
||||
"bind"
|
||||
"uid=1000"
|
||||
@@ -110,19 +110,19 @@ let
|
||||
"path" = "/etc/nixos";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
"create mask" = 755;
|
||||
"directory mask" = 755;
|
||||
"force user" = "${inputs.zeroq.devices.admin}";
|
||||
"force user" = "${config.xlib.devices.admin}";
|
||||
"force group" = "users";
|
||||
};
|
||||
root = {
|
||||
"path" = "/";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
#"create mask" = 0644;
|
||||
@@ -130,16 +130,16 @@ let
|
||||
"force user" = "root";
|
||||
"force group" = "root";
|
||||
};
|
||||
"${inputs.zeroq.devices.admin}" = {
|
||||
"path" = "${inputs.zeroq.dirs.server-home}";
|
||||
"${config.xlib.devices.admin}" = {
|
||||
"path" = "${config.xlib.dirs.server-home}";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
"create mask" = 700;
|
||||
"directory mask" = 700;
|
||||
"force user" = "${inputs.zeroq.devices.admin}";
|
||||
"force user" = "${config.xlib.devices.admin}";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
@@ -147,9 +147,9 @@ let
|
||||
calibre-web = {
|
||||
enable = true;
|
||||
group = "users";
|
||||
user = "${inputs.zeroq.devices.admin}";
|
||||
user = "${config.xlib.devices.admin}";
|
||||
options = {
|
||||
calibreLibrary = "${inputs.zeroq.dirs.calibre-library}";
|
||||
calibreLibrary = "${config.xlib.dirs.calibre-library}";
|
||||
enableBookUploading = true;
|
||||
enableKepubify = false;
|
||||
};
|
||||
@@ -174,14 +174,14 @@ let
|
||||
};
|
||||
transmission = {
|
||||
enable = false;
|
||||
credentialsFile = "${inputs.zeroq.dirs.server-home}/server/transmission/settings.json";
|
||||
credentialsFile = "${config.xlib.dirs.server-home}/server/transmission/settings.json";
|
||||
openRPCPort = true;
|
||||
package = pkgs.transmission_4;
|
||||
user = "${inputs.zeroq.devices.admin}";
|
||||
user = "${config.xlib.devices.admin}";
|
||||
group = "users";
|
||||
settings = {
|
||||
download-dir = "${inputs.zeroq.dirs.server-home}/Downloads";
|
||||
incomplete-dir = "${inputs.zeroq.dirs.server-home}/Downloads/Temp";
|
||||
download-dir = "${config.xlib.dirs.server-home}/Downloads";
|
||||
incomplete-dir = "${config.xlib.dirs.server-home}/Downloads/Temp";
|
||||
incomplete-dir-enabled = true;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-port = 9091;
|
||||
@@ -193,16 +193,16 @@ let
|
||||
enable = true;
|
||||
systemService = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
configDir = "${inputs.zeroq.dirs.storage}/Syncthing/${inputs.zeroq.devices.server.hostname}";
|
||||
dataDir = "${inputs.zeroq.dirs.server-home}";
|
||||
configDir = "${config.xlib.dirs.storage}/Syncthing/${config.xlib.devices.server.hostname}";
|
||||
dataDir = "${config.xlib.dirs.server-home}";
|
||||
group = "users";
|
||||
user = "${inputs.zeroq.devices.admin}";
|
||||
user = "${config.xlib.devices.admin}";
|
||||
};
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "${inputs.zeroq.devices.server.hostname}";
|
||||
hostName = "${config.xlib.devices.server.hostname}";
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
+9
-9
@@ -52,7 +52,7 @@ let
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
||||
];
|
||||
};
|
||||
"${inputs.zeroq.devices.admin}" = {
|
||||
"${config.xlib.devices.admin}" = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
||||
];
|
||||
@@ -81,19 +81,19 @@ let
|
||||
"path" = "/etc/nixos";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
"create mask" = 755;
|
||||
"directory mask" = 755;
|
||||
"force user" = "${inputs.zeroq.devices.admin}";
|
||||
"force user" = "${config.xlib.devices.admin}";
|
||||
"force group" = "users";
|
||||
};
|
||||
root = {
|
||||
"path" = "/";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
#"create mask" = 0644;
|
||||
@@ -101,16 +101,16 @@ let
|
||||
"force user" = "root";
|
||||
"force group" = "root";
|
||||
};
|
||||
"${inputs.zeroq.devices.admin}" = {
|
||||
"path" = "/home/${inputs.zeroq.devices.admin}";
|
||||
"${config.xlib.devices.admin}" = {
|
||||
"path" = "/home/${config.xlib.devices.admin}";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"valid users" = "${inputs.zeroq.devices.admin}";
|
||||
"valid users" = "${config.xlib.devices.admin}";
|
||||
"guest ok" = "no";
|
||||
"writable" = "yes";
|
||||
"create mask" = 700;
|
||||
"directory mask" = 700;
|
||||
"force user" = "${inputs.zeroq.devices.admin}";
|
||||
"force user" = "${config.xlib.devices.admin}";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
@@ -138,7 +138,7 @@ let
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "${inputs.zeroq.devices.vds.hostname}";
|
||||
hostName = "${config.xlib.devices.vds.hostname}";
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = true;
|
||||
};
|
||||
|
||||
+2
-2
@@ -37,7 +37,7 @@ let
|
||||
fileSystems = {
|
||||
# beets
|
||||
"/mnt/beets/music" = {
|
||||
device = "${inputs.zeroq.dirs.wsl-home}/Music";
|
||||
device = "${config.xlib.dirs.wsl-home}/Music";
|
||||
options = [
|
||||
"bind"
|
||||
"uid=1000"
|
||||
@@ -62,7 +62,7 @@ let
|
||||
|
||||
networking = {
|
||||
firewall.enable = false;
|
||||
hostName = "${config.xlib.device.hostname}";
|
||||
hostName = config.xlib.device.hostname;
|
||||
};
|
||||
|
||||
wsl = {
|
||||
|
||||
@@ -144,18 +144,18 @@
|
||||
|
||||
homeConfigurations = {
|
||||
default = import ./home/default.nix flakeContext;
|
||||
root = import ./home/root.nix flakeContext;
|
||||
main = import ./home/main.nix flakeContext;
|
||||
server = import ./home/server.nix flakeContext;
|
||||
wsl = import ./home/wsl.nix flakeContext;
|
||||
# root = import ./home/root.nix flakeContext;
|
||||
# main = import ./home/main.nix flakeContext;
|
||||
# server = import ./home/server.nix flakeContext;
|
||||
# wsl = import ./home/wsl.nix flakeContext;
|
||||
};
|
||||
homeModules = {
|
||||
minimal = import ./home/modules/minimal.nix flakeContext;
|
||||
wsl = import ./home/modules/wsl.nix flakeContext;
|
||||
packages = import ./home/modules/packages.nix flakeContext;
|
||||
default = import ./home/modules/default.nix flakeContext;
|
||||
dconf = import ./home/modules/dconf.nix flakeContext;
|
||||
plasma-manager = import ./home/modules/plasma-manager.nix flakeContext;
|
||||
# minimal = import ./home/modules/minimal.nix flakeContext;
|
||||
# wsl = import ./home/modules/wsl.nix flakeContext;
|
||||
# packages = import ./home/modules/packages.nix flakeContext;
|
||||
# default = import ./home/modules/default.nix flakeContext;
|
||||
# dconf = import ./home/modules/dconf.nix flakeContext;
|
||||
# plasma-manager = import ./home/modules/plasma-manager.nix flakeContext;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
+4
-2
@@ -10,7 +10,8 @@ let
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.self.homeModules."${xlib.device.type}" # -> (./type + "/${xlib.device.type}.nix")
|
||||
(./type + "/${xlib.device.type}.nix")
|
||||
#inputs.self.homeModules."${xlib.device.type}" # -> (./type + "/${xlib.device.type}.nix")
|
||||
];
|
||||
home = {
|
||||
username = xlib.device.username;
|
||||
@@ -29,7 +30,8 @@ let
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.self.homeModules."${xlib.device.type}"
|
||||
(./type + "/${xlib.device.type}.nix")
|
||||
#inputs.self.homeModules."${xlib.device.type}"
|
||||
];
|
||||
home = {
|
||||
username = "root";
|
||||
|
||||
+12
-12
@@ -14,33 +14,33 @@ let
|
||||
autostart.enable = true;
|
||||
configFile = {
|
||||
"beets" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/beets/linux";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/beets/linux";
|
||||
target = "beets";
|
||||
};
|
||||
"ludusavi" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/ludusavi/cfg";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/ludusavi/cfg";
|
||||
target = "ludusavi";
|
||||
};
|
||||
"solaar" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/solaar";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/solaar";
|
||||
target = "solaar";
|
||||
};
|
||||
"easyeffects" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/easyeffects";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/easyeffects";
|
||||
target = "easyeffects";
|
||||
};
|
||||
"keepassxc" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/KeePassXC";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/KeePassXC";
|
||||
target = "keepassxc";
|
||||
};
|
||||
};
|
||||
dataFile = {
|
||||
"PrismLauncher" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.vetymae-drive}/Games/PrismLauncher";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.vetymae-drive}/Games/PrismLauncher";
|
||||
target = "PrismLauncher";
|
||||
};
|
||||
"v2rayN" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/v2rayN";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/v2rayN";
|
||||
target = "v2rayN";
|
||||
};
|
||||
};
|
||||
@@ -59,18 +59,18 @@ let
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "${inputs.zeroq.devices.admin}";
|
||||
username = "${config.xlib.devices.admin}";
|
||||
file = {
|
||||
"ssh" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.user-storage}/ssh/${config.home.username}";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/ssh/${config.home.username}";
|
||||
target = ".ssh";
|
||||
};
|
||||
"External" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.therima-drive}";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.therima-drive}";
|
||||
target = "External";
|
||||
};
|
||||
"LM Studio" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.vetymae-drive}/AI/LM Studio";
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.vetymae-drive}/AI/LM Studio";
|
||||
target = ".lmstudio";
|
||||
};
|
||||
};
|
||||
@@ -90,7 +90,7 @@ let
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${inputs.zeroq.devices.admin} = homeModule;
|
||||
users.${config.xlib.devices.admin} = homeModule;
|
||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||
extraSpecialArgs = {
|
||||
inherit (config.networking) hostName;
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
}:
|
||||
let
|
||||
# Paths
|
||||
beetsPath = "${inputs.zeroq.dirs.storage}/beets/linux";
|
||||
sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.devices.server.hostname}";
|
||||
beetsPath = "${config.xlib.dirs.storage}/beets/linux";
|
||||
sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||
in
|
||||
{
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
}:
|
||||
let
|
||||
# Paths
|
||||
beetsPath = "${inputs.zeroq.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.devices.server.hostname}";
|
||||
beetsPath = "${config.xlib.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||
externalPath = "${inputs.zeroq.dirs.wsl-home}";
|
||||
externalPath = "${config.xlib.dirs.wsl-home}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -38,7 +38,7 @@ in
|
||||
# };
|
||||
};
|
||||
home = {
|
||||
#username = "${inputs.zeroq.devices.admin}";
|
||||
#username = "${config.xlib.devices.admin}";
|
||||
file = {
|
||||
"External" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
||||
|
||||
+4
-4
@@ -9,8 +9,8 @@ let
|
||||
}:
|
||||
let
|
||||
# Paths
|
||||
beetsPath = "${inputs.zeroq.dirs.storage}/beets/linux";
|
||||
sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.devices.server.hostname}";
|
||||
beetsPath = "${config.xlib.dirs.storage}/beets/linux";
|
||||
sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||
in
|
||||
{
|
||||
@@ -50,7 +50,7 @@ let
|
||||
target = "${config.home.homeDirectory}/Music";
|
||||
};
|
||||
};
|
||||
username = "${inputs.zeroq.devices.admin}";
|
||||
username = "${config.xlib.devices.admin}";
|
||||
};
|
||||
|
||||
};
|
||||
@@ -60,7 +60,7 @@ let
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${inputs.zeroq.devices.admin} = homeModule;
|
||||
users.${config.xlib.devices.admin} = homeModule;
|
||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||
};
|
||||
};
|
||||
|
||||
+4
-6
@@ -1,4 +1,3 @@
|
||||
#{ inputs, ... }@flakeContext:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
@@ -6,14 +5,14 @@
|
||||
}:
|
||||
let
|
||||
# Paths
|
||||
beetsPath = "${inputs.zeroq.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.devices.server.hostname}";
|
||||
beetsPath = "${xlib.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${xlib.dirs.wsl-storage}/ssh/${config.xlib.devices.server.hostname}";
|
||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||
externalPath = "${inputs.zeroq.dirs.wsl-home}";
|
||||
externalPath = "${xlib.dirs.wsl-home}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.self.homeModules.minimal
|
||||
./minimal.nix
|
||||
];
|
||||
xdg = {
|
||||
enable = true;
|
||||
@@ -38,7 +37,6 @@ in
|
||||
# };
|
||||
};
|
||||
home = {
|
||||
#username = "${inputs.zeroq.devices.admin}";
|
||||
file = {
|
||||
"External" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
||||
|
||||
+5
-5
@@ -9,10 +9,10 @@ let
|
||||
}:
|
||||
let
|
||||
# Paths
|
||||
beetsPath = "${inputs.zeroq.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.devices.server.hostname}";
|
||||
beetsPath = "${config.xlib.dirs.wsl-storage}/beets/linux";
|
||||
#sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||
externalPath = "${inputs.zeroq.dirs.wsl-home}";
|
||||
externalPath = "${config.xlib.dirs.wsl-home}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -42,7 +42,7 @@ let
|
||||
};
|
||||
|
||||
home = {
|
||||
#username = "${inputs.zeroq.devices.admin}";
|
||||
#username = "${config.xlib.devices.admin}";
|
||||
file = {
|
||||
"External" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
||||
@@ -69,7 +69,7 @@ let
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${inputs.zeroq.devices.admin} = homeModule;
|
||||
users.${config.xlib.devices.admin} = homeModule;
|
||||
# sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||
# extraSpecialArgs = {
|
||||
# inherit (config.networking) hostName;
|
||||
|
||||
+2
-1
@@ -7,7 +7,8 @@
|
||||
imports = with inputs; [
|
||||
./essentials
|
||||
./users.nix
|
||||
(import ./options.nix { inherit lib inputs; }) # Options
|
||||
./options.nix
|
||||
#(import ./options.nix { inherit lib inputs; }) # Options
|
||||
|
||||
home-manager.nixosModules.home-manager # home-manager module
|
||||
nix-index-database.nixosModules.nix-index # nix-index module
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
services = {
|
||||
cloudflared = {
|
||||
enable = false;
|
||||
certificateFile = "${inputs.zeroq.dirs.server-credentials}/cloudflared/cert.pem";
|
||||
certificateFile = "${config.xlib.dirs.server-credentials}/cloudflared/cert.pem";
|
||||
tunnels = {
|
||||
"58b340ee-e98a-4af9-b786-74600c71f49e" = {
|
||||
credentialsFile = "${inputs.zeroq.dirs.server-credentials}/cloudflared/server.json";
|
||||
credentialsFile = "${config.xlib.dirs.server-credentials}/cloudflared/server.json";
|
||||
warp-routing.enabled = true;
|
||||
ingress = {
|
||||
"immich.zeroq.ru" = {
|
||||
@@ -25,7 +25,7 @@
|
||||
default = "http_status:404";
|
||||
};
|
||||
# "58b340ee-e98a-4af9-b786-74600c71f49e" = {
|
||||
# credentialsFile = "${inputs.zeroq.dirs.server-credentials}/cloudflared/server.json";
|
||||
# credentialsFile = "${config.xlib.dirs.server-credentials}/cloudflared/server.json";
|
||||
# warp-routing.enabled = true;
|
||||
# ingress = {
|
||||
# "nextcloud.zeroq.ru" = {
|
||||
@@ -57,7 +57,7 @@
|
||||
# ];
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# serviceConfig = {
|
||||
# ExecStart = "${pkgs.cloudflared}/bin/cloudflared tunnel --no-autoupdate --config=${inputs.zeroq.dirs.server-credentials}/cloudflared/config.yaml --origincert=${inputs.zeroq.dirs.server-credentials}/cloudflared/cert.pem --credentials-file=${inputs.zeroq.dirs.server-credentials}/cloudflared/server.json run";
|
||||
# ExecStart = "${pkgs.cloudflared}/bin/cloudflared tunnel --no-autoupdate --config=${config.xlib.dirs.server-credentials}/cloudflared/config.yaml --origincert=${config.xlib.dirs.server-credentials}/cloudflared/cert.pem --credentials-file=${config.xlib.dirs.server-credentials}/cloudflared/server.json run";
|
||||
# Group = "root";
|
||||
# User = "root";
|
||||
# Restart = "on-failure";
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
};
|
||||
|
||||
fileSystems."${config.services.immich.mediaLocation}" = {
|
||||
device = "${inputs.zeroq.dirs.immich-folder}";
|
||||
device = "${config.xlib.dirs.immich-folder}";
|
||||
options = [
|
||||
"bind"
|
||||
#"uid=1000"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
};
|
||||
|
||||
fileSystems."/mnt/nextcloud" = {
|
||||
device = "${inputs.zeroq.dirs.nextcloud-folder}";
|
||||
device = "${config.xlib.dirs.nextcloud-folder}";
|
||||
options = [
|
||||
"bind"
|
||||
#"uid=1000"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# HSA_OVERRIDE_GFX_VERSION = "11.5.0";
|
||||
# HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore
|
||||
# };
|
||||
# user = "ollama"; # "${inputs.zeroq.devices.admin}";
|
||||
# user = "ollama"; # "${config.xlib.devices.admin}";
|
||||
# group = "ollama";
|
||||
# acceleration = "rocm";
|
||||
# rocmOverrideGfx = "11.5.0";
|
||||
|
||||
@@ -20,12 +20,12 @@ let
|
||||
in
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"z /mnt/beets 0700 ${inputs.zeroq.devices.admin} users -" # beets absolute paths
|
||||
"z /mnt/beets 0700 ${config.xlib.devices.admin} users -" # beets absolute paths
|
||||
];
|
||||
|
||||
users = {
|
||||
users = {
|
||||
"${inputs.zeroq.devices.admin}" = {
|
||||
"${config.xlib.devices.admin}" = {
|
||||
packages = [
|
||||
beetsEnv
|
||||
pkgs.mp3gain
|
||||
|
||||
Reference in New Issue
Block a user