Compare commits
1 commit
786aad9314
...
acba4b157a
Author | SHA1 | Date | |
---|---|---|---|
acba4b157a |
9 changed files with 67 additions and 111 deletions
60
flake.lock
generated
60
flake.lock
generated
|
@ -104,11 +104,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721417620,
|
"lastModified": 1721266288,
|
||||||
"narHash": "sha256-6q9b1h8fI3hXg2DG6/vrKWCeG8c5Wj2Kvv22RCgedzg=",
|
"narHash": "sha256-MsyTzXu9CJVcBr44ct8ILKF/Ro7VlF+tVZTylzAoXSs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "bec6e3cde912b8acb915fecdc509eda7c973fb42",
|
"rev": "e8e8d9a3a9c1d0e654ccda7834bf0288a9d15c47",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -818,11 +818,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721534365,
|
"lastModified": 1721135958,
|
||||||
"narHash": "sha256-XpZOkaSJKdOsz1wU6JfO59Rx2fqtcarQ0y6ndIOKNpI=",
|
"narHash": "sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "635563f245309ef5320f80c7ebcb89b2398d2949",
|
"rev": "afd2021bedff2de92dfce0e257a3d03ae65c603d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -852,21 +852,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanence": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1719091691,
|
|
||||||
"narHash": "sha256-AxaLX5cBEcGtE02PeGsfscSb/fWMnyS7zMWBXQWDKbE=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "impermanence",
|
|
||||||
"rev": "23c1f06316b67cb5dabdfe2973da3785cfe9c34a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "impermanence",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kernel-src": {
|
"kernel-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -887,11 +872,11 @@
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721513673,
|
"lastModified": 1721371213,
|
||||||
"narHash": "sha256-Tgdh7f1AB4D8aDw4obBwh0VYgZEcFBbjKZmMyolmnhw=",
|
"narHash": "sha256-7SdrlNe5DBlK5uLBhPPxVRWI50N1PFz3zMBeDYiX0Qs=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "1917e6c765b0b0012ed85a7a927db0bf83fb27ca",
|
"rev": "aba5f19680b2f4c29d7ce2ff5e2a89128c1cb26d",
|
||||||
"revCount": 15996,
|
"revCount": 15985,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git@git.lix.systems/lix-project/lix"
|
"url": "https://git@git.lix.systems/lix-project/lix"
|
||||||
},
|
},
|
||||||
|
@ -1019,11 +1004,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721550066,
|
"lastModified": 1721270582,
|
||||||
"narHash": "sha256-wr6sSb+VpXy8HCvBqU6xvhpaARzWUbEK7uN5tLnqYDg=",
|
"narHash": "sha256-MdZmYPPExntE5rJu88IhJSy8Um4UyZCTXhOwvzbjDVI=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "33bf7df5bbfcbbb49e6559b0c96c9e3b26d14e58",
|
"rev": "a3e4a7b8ffc08c7dc1973822a77ad432e1ec3dec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1063,11 +1048,11 @@
|
||||||
"nixpkgs": "nixpkgs_10"
|
"nixpkgs": "nixpkgs_10"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721541664,
|
"lastModified": 1721140729,
|
||||||
"narHash": "sha256-hk9g7kuGqDz8TYAbX9R6IvLUDnE5UpxwLR41MZ5uTDU=",
|
"narHash": "sha256-f+RjBJ4BZ8Uv6QuQ/TEaA8crKP+Uw6DZXdtRY2EvwlQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixd",
|
"repo": "nixd",
|
||||||
"rev": "963dd36863e18f942e90c66b2c76e7c161b61ff9",
|
"rev": "334da32238a641c24ca7bff59d7a7d38c48fea06",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1078,11 +1063,11 @@
|
||||||
},
|
},
|
||||||
"nixosHardware": {
|
"nixosHardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721413321,
|
"lastModified": 1721331912,
|
||||||
"narHash": "sha256-0GdiQScDceUrVGbxYpV819LHesK3szHOhJ09e6sgES4=",
|
"narHash": "sha256-h2yaU+QEU4pHxMySHPIsRV2T/pihDHnrXBca8BY6xgc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "ab165a8a6cd12781d76fe9cbccb9e975d0fb634f",
|
"rev": "bb90787ea034c8b9035dfcfc9b4dc23898d414be",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1655,7 +1640,6 @@
|
||||||
"hercules-ci-effects": "hercules-ci-effects_3",
|
"hercules-ci-effects": "hercules-ci-effects_3",
|
||||||
"homeManager": "homeManager",
|
"homeManager": "homeManager",
|
||||||
"homeManagerGitWorkspace": "homeManagerGitWorkspace",
|
"homeManagerGitWorkspace": "homeManagerGitWorkspace",
|
||||||
"impermanence": "impermanence",
|
|
||||||
"lix": "lix",
|
"lix": "lix",
|
||||||
"lix-module": "lix-module",
|
"lix-module": "lix-module",
|
||||||
"mobile-nixos": "mobile-nixos",
|
"mobile-nixos": "mobile-nixos",
|
||||||
|
@ -1823,11 +1807,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721458737,
|
"lastModified": 1721382922,
|
||||||
"narHash": "sha256-wNXLQ/ATs1S4Opg1PmuNoJ+Wamqj93rgZYV3Di7kxkg=",
|
"narHash": "sha256-GYpibTC0YYKRpFR9aftym9jjRdUk67ejw1IWiaQkaiU=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "888bfb10a9b091d9ed2f5f8064de8d488f7b7c97",
|
"rev": "50104496fb55c9140501ea80d183f3223d13ff65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -68,7 +68,6 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
arion.url = "github:hercules-ci/arion";
|
arion.url = "github:hercules-ci/arion";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {flakeParts, ...}:
|
outputs = inputs @ {flakeParts, ...}:
|
||||||
|
|
|
@ -160,7 +160,6 @@
|
||||||
extraModules = with inputs; [
|
extraModules = with inputs; [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
arion.nixosModules.arion
|
arion.nixosModules.arion
|
||||||
impermanence.nixosModules.impermanence
|
|
||||||
# lix-module.nixosModules.default
|
# lix-module.nixosModules.default
|
||||||
# inputs.hercules-ci-agent.nixosModules.agent-service;
|
# inputs.hercules-ci-agent.nixosModules.agent-service;
|
||||||
# rock5b.nixosModules.default
|
# rock5b.nixosModules.default
|
||||||
|
@ -174,8 +173,8 @@
|
||||||
"home-planimetry".owner = "hass";
|
"home-planimetry".owner = "hass";
|
||||||
"cloudflare-dyndns-api-token" = {};
|
"cloudflare-dyndns-api-token" = {};
|
||||||
"restic-hetzner-password" = {};
|
"restic-hetzner-password" = {};
|
||||||
# "minio-credentials".owner = "minio";
|
"minio-credentials".owner = "minio";
|
||||||
# "aws-credentials".owner = "hercules-ci-agent";
|
"aws-credentials".owner = "hercules-ci-agent";
|
||||||
"hass-ssh-key".owner = "hass";
|
"hass-ssh-key".owner = "hass";
|
||||||
# "matrix-registration-shared-secret".owner = "matrix-synapse";
|
# "matrix-registration-shared-secret".owner = "matrix-synapse";
|
||||||
# "matrix-sliding-sync-secret".owner = "matrix-synapse";
|
# "matrix-sliding-sync-secret".owner = "matrix-synapse";
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"restic"
|
"restic"
|
||||||
"binfmt"
|
"binfmt"
|
||||||
"greetd"
|
"greetd"
|
||||||
# "syncthing"
|
"syncthing"
|
||||||
"hass-poweroff"
|
"hass-poweroff"
|
||||||
"forgejo-runners"
|
"forgejo-runners"
|
||||||
"teamviewer"
|
"teamviewer"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"wireguard-server"
|
"wireguard-server"
|
||||||
"mediatomb"
|
"mediatomb"
|
||||||
"transmission"
|
"transmission"
|
||||||
# "hercules-ci"
|
"hercules-ci"
|
||||||
"home-assistant"
|
"home-assistant"
|
||||||
"adguard-home"
|
"adguard-home"
|
||||||
"cloudflare-dyndns"
|
"cloudflare-dyndns"
|
||||||
|
@ -21,13 +21,13 @@
|
||||||
"invidious"
|
"invidious"
|
||||||
"searx"
|
"searx"
|
||||||
"rock5b-samba"
|
"rock5b-samba"
|
||||||
# "paperless"
|
"paperless"
|
||||||
# "restic"
|
"restic"
|
||||||
# "syncthing"
|
"syncthing"
|
||||||
# "minio"
|
"minio"
|
||||||
# # "matrix"
|
# "matrix"
|
||||||
"forgejo"
|
"forgejo"
|
||||||
# # "jellyfin"
|
# "jellyfin"
|
||||||
# "immich"
|
# "immich"
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
|
@ -62,6 +62,8 @@
|
||||||
|
|
||||||
ccr.enable = true;
|
ccr.enable = true;
|
||||||
|
|
||||||
|
# services.rock5b-fan-control.enable = true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
|
@ -82,35 +84,26 @@
|
||||||
"console=ttyS0,1500000"
|
"console=ttyS0,1500000"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.persistence."/persist" = {
|
# fileSystems."/mnt/film" = {
|
||||||
hideMounts = true;
|
# device = "//ccr.ydns.eu/film";
|
||||||
directories = [
|
# fsType = "cifs";
|
||||||
"/etc/NetworkManager/system-connections"
|
# options = let
|
||||||
"/var/db/dhcpcd/"
|
# credentials = pkgs.writeText "credentials" ''
|
||||||
"/var/lib/NetworkManager/"
|
# username=guest
|
||||||
"/var/lib/nixos"
|
# password=
|
||||||
"/var/lib/systemd"
|
# '';
|
||||||
"/var/lib/systemd/coredump"
|
# in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
|
||||||
"/var/log"
|
# };
|
||||||
"/var/lib/containers"
|
# fileSystems."/mnt/archivio" = {
|
||||||
"/var/lib/postgresql"
|
# device = "//ccr.ydns.eu/archivio";
|
||||||
];
|
# fsType = "cifs";
|
||||||
files = [
|
# options = let
|
||||||
"/etc/machine-id"
|
# credentials = pkgs.writeText "credentials" ''
|
||||||
"/etc/ssh/ssh_host_ed25519_key"
|
# username=guest
|
||||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
# password=
|
||||||
"/etc/ssh/ssh_host_rsa_key"
|
# '';
|
||||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
# in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
|
||||||
];
|
# };
|
||||||
};
|
|
||||||
|
|
||||||
age.identityPaths = [
|
|
||||||
"/persist/etc/ssh/ssh_host_ed25519_key"
|
|
||||||
"/persist/etc/ssh/ssh_host_rsa_key"
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems."/persist".neededForBoot = true;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
|
|
||||||
fileSystems."/mnt/hd" = {
|
fileSystems."/mnt/hd" = {
|
||||||
device = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1";
|
device = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550-part1";
|
||||||
|
|
|
@ -7,10 +7,6 @@ let
|
||||||
# old_hd = "/dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E5TR40FU";
|
# old_hd = "/dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E5TR40FU";
|
||||||
in {
|
in {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
nodev."/" = {
|
|
||||||
fsType = "tmpfs";
|
|
||||||
mountOptions = ["size=1024M" "defaults" "mode=755"];
|
|
||||||
};
|
|
||||||
disk = {
|
disk = {
|
||||||
ssd = {
|
ssd = {
|
||||||
device = ssd;
|
device = ssd;
|
||||||
|
@ -21,35 +17,20 @@ in {
|
||||||
ESP = {
|
ESP = {
|
||||||
label = "ESP";
|
label = "ESP";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
size = "1024M";
|
size = "1G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixroot = {
|
root = {
|
||||||
size = "100G";
|
label = "root";
|
||||||
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/nix";
|
mountpoint = "/";
|
||||||
};
|
|
||||||
};
|
|
||||||
persist = {
|
|
||||||
size = "100G";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/persist";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
tmp = {
|
|
||||||
end = "0";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/tmp";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,11 +29,15 @@
|
||||||
SHOW_FOOTER_VERSION = false;
|
SHOW_FOOTER_VERSION = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
secrets.mailer.PASSWD = config.age.secrets.autistici-password.path;
|
mailerPasswordFile = config.age.secrets.autistici-password.path;
|
||||||
dump.enable = true;
|
dump.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist".directories = [
|
systemd.tmpfiles.rules = [
|
||||||
|
"d ${config.services.forgejo.stateDir} 770 forgejo forgejo"
|
||||||
|
];
|
||||||
|
|
||||||
|
backup.paths = [
|
||||||
config.services.forgejo.stateDir
|
config.services.forgejo.stateDir
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -210,8 +210,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist".directories = [
|
backup.paths = [
|
||||||
config.services.home-assistant.configDir
|
"/var/lib/hass"
|
||||||
];
|
];
|
||||||
|
|
||||||
# virtualisation.oci-containers = {
|
# virtualisation.oci-containers = {
|
||||||
|
|
|
@ -16,8 +16,4 @@
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist".directories = [
|
|
||||||
"/var/lib/acme"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue