mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
feat: changed system naming convention
This commit is contained in:
parent
33455dccd9
commit
1b36918ced
30 changed files with 51 additions and 49 deletions
|
@ -5,7 +5,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.people) user1;
|
||||
inherit (flake.config.machines.devices) callisto;
|
||||
inherit (flake.config.machines.devices) charon;
|
||||
in
|
||||
{
|
||||
fileSystems = {
|
||||
|
@ -16,7 +16,7 @@ in
|
|||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/1703-D452";
|
||||
fsType = "vfat";
|
||||
options = callisto.boot.options;
|
||||
options = charon.boot.options;
|
||||
};
|
||||
};
|
||||
|
|
@ -5,12 +5,12 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices)
|
||||
callisto
|
||||
charon
|
||||
;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hostName = callisto.name;
|
||||
hostName = charon.name;
|
||||
networkmanager.enable = true;
|
||||
nftables.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
|
@ -9,7 +9,7 @@ let
|
|||
user1
|
||||
;
|
||||
inherit (flake.config.machines.devices)
|
||||
ganymede
|
||||
deimos
|
||||
synology
|
||||
ceres
|
||||
;
|
||||
|
@ -63,7 +63,7 @@ in
|
|||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/C506-9E18";
|
||||
fsType = "vfat";
|
||||
options = ganymede.boot.options;
|
||||
options = deimos.boot.options;
|
||||
};
|
||||
}
|
||||
// (builtins.listToAttrs (map synologyMounts synologyDrives))
|
|
@ -5,12 +5,12 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices)
|
||||
ganymede
|
||||
deimos
|
||||
;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hostName = ganymede.name;
|
||||
hostName = deimos.name;
|
||||
networkmanager.enable = true;
|
||||
nftables.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
|
@ -2,7 +2,7 @@
|
|||
let
|
||||
configPath = ./config;
|
||||
|
||||
jupiterImports =
|
||||
deimosImports =
|
||||
let
|
||||
files = builtins.attrNames (builtins.readDir configPath);
|
||||
in
|
||||
|
@ -11,7 +11,7 @@ let
|
|||
);
|
||||
in
|
||||
{
|
||||
imports = jupiterImports;
|
||||
imports = deimosImports;
|
||||
nixpkgs.hostPlatform = lib.mkForce "x86_64-linux";
|
||||
system.stateVersion = lib.mkForce "24.05";
|
||||
}
|
|
@ -9,7 +9,7 @@ let
|
|||
user1
|
||||
;
|
||||
inherit (flake.config.machines.devices)
|
||||
jupiter
|
||||
mars
|
||||
ceres
|
||||
synology
|
||||
;
|
||||
|
@ -50,11 +50,11 @@ in
|
|||
};
|
||||
|
||||
storageMounts = storageDrive: {
|
||||
name = "${jupiter.${storageDrive}.mount}";
|
||||
name = "${mars.${storageDrive}.mount}";
|
||||
value = {
|
||||
device = jupiter.${storageDrive}.device;
|
||||
device = mars.${storageDrive}.device;
|
||||
fsType = "ext4";
|
||||
options = jupiter.${storageDrive}.options;
|
||||
options = mars.${storageDrive}.options;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -77,7 +77,7 @@ in
|
|||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/F095-17B7";
|
||||
fsType = "vfat";
|
||||
options = jupiter.boot.options;
|
||||
options = mars.boot.options;
|
||||
};
|
||||
}
|
||||
// (builtins.listToAttrs (map synologyMounts synologyDrives))
|
||||
|
@ -91,8 +91,8 @@ in
|
|||
systemd.tmpfiles.rules = [
|
||||
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
|
||||
"Z ${config.home-manager.users.${user1}.home.homeDirectory} 0755 ${user1} users -"
|
||||
"Z ${jupiter.storage0.mount} 0755 ${user0} users -"
|
||||
"Z ${jupiter.storage1.mount} 0755 ${user0} users -"
|
||||
"Z ${mars.storage0.mount} 0755 ${user0} users -"
|
||||
"Z ${mars.storage1.mount} 0755 ${user0} users -"
|
||||
];
|
||||
|
||||
services.udisks2.enable = true;
|
|
@ -5,12 +5,12 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices)
|
||||
jupiter
|
||||
mars
|
||||
;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hostName = jupiter.name;
|
||||
hostName = mars.name;
|
||||
networkmanager.enable = true;
|
||||
nftables.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
||||
|
@ -22,7 +22,8 @@ in
|
|||
2234 # Soulseek
|
||||
3131 # Deskreen
|
||||
1234 # Elm-land server
|
||||
55473
|
||||
5037 # ADB Server
|
||||
52006
|
||||
];
|
||||
};
|
||||
};
|
|
@ -2,7 +2,7 @@
|
|||
let
|
||||
configPath = ./config;
|
||||
|
||||
ganymedeImports =
|
||||
marsImports =
|
||||
let
|
||||
files = builtins.attrNames (builtins.readDir configPath);
|
||||
in
|
||||
|
@ -11,7 +11,7 @@ let
|
|||
);
|
||||
in
|
||||
{
|
||||
imports = ganymedeImports;
|
||||
imports = marsImports;
|
||||
nixpkgs.hostPlatform = lib.mkForce "x86_64-linux";
|
||||
system.stateVersion = lib.mkForce "24.05";
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.people) user2;
|
||||
inherit (flake.config.machines.devices) saturn;
|
||||
inherit (flake.config.machines.devices) venus;
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
@ -18,11 +18,11 @@ in
|
|||
];
|
||||
|
||||
storageMounts = storage: {
|
||||
name = "${saturn.${storage}.mount}";
|
||||
name = "${venus.${storage}.mount}";
|
||||
value = {
|
||||
device = saturn.${storage}.device;
|
||||
device = venus.${storage}.device;
|
||||
fsType = "ext4";
|
||||
options = saturn.${storage}.options;
|
||||
options = venus.${storage}.options;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
@ -34,7 +34,7 @@ in
|
|||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/22BD-5A25";
|
||||
fsType = "vfat";
|
||||
options = saturn.boot.options;
|
||||
options = venus.boot.options;
|
||||
};
|
||||
}
|
||||
// (builtins.listToAttrs (map storageMounts storageDrives));
|
||||
|
@ -45,8 +45,8 @@ in
|
|||
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z ${config.home-manager.users.${user2}.home.homeDirectory} 0755 ${user2} users -"
|
||||
"Z ${saturn.storage0.mount} 0755 ${user2} users -"
|
||||
"Z ${saturn.storage1.mount} 0755 ${user2} users -"
|
||||
"Z ${venus.storage0.mount} 0755 ${user2} users -"
|
||||
"Z ${venus.storage1.mount} 0755 ${user2} users -"
|
||||
];
|
||||
|
||||
services.udisks2.enable = true;
|
|
@ -4,11 +4,11 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices) saturn;
|
||||
inherit (flake.config.machines.devices) venus;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hostName = saturn.name;
|
||||
hostName = venus.name;
|
||||
networkmanager.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
||||
firewall = {
|
|
@ -5,7 +5,7 @@
|
|||
let
|
||||
configPath = ./config;
|
||||
|
||||
saturnImports =
|
||||
venusImports =
|
||||
let
|
||||
files = builtins.attrNames (builtins.readDir configPath);
|
||||
in
|
||||
|
@ -14,7 +14,7 @@ let
|
|||
);
|
||||
in
|
||||
{
|
||||
imports = saturnImports;
|
||||
imports = venusImports;
|
||||
nixpkgs.hostPlatform = lib.mkForce "x86_64-linux";
|
||||
system.stateVersion = lib.mkForce "24.05";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue