This commit is contained in:
Spectre 2024-06-07 01:29:44 +02:00
parent 231cb21334
commit c8f7273dd0
5 changed files with 33 additions and 20 deletions

View file

@ -31,9 +31,20 @@
hosts = builtins.filter (host: builtins.pathExists ./hosts/${host}/configuration.nix) (builtins.attrNames (builtins.readDir ./hosts)); hosts = builtins.filter (host: builtins.pathExists ./hosts/${host}/configuration.nix) (builtins.attrNames (builtins.readDir ./hosts));
mkHostConfig = host: mkHostConfig = host: let
defaultConf = rec {
hostname = host;
uid = 1000;
user = "lilith";
home = /home/${user};
};
in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;}; specialArgs = {
inherit inputs outputs;
conf = defaultConf;
};
modules = [ modules = [
./hosts/${host}/configuration.nix ./hosts/${host}/configuration.nix
./hosts/${host}/hardware-configuration.nix ./hosts/${host}/hardware-configuration.nix

1
home/persist.nix Normal file
View file

@ -0,0 +1 @@
{...}: {}

View file

@ -1,3 +1,3 @@
{...}: { {...}: {
import = ["../system"]; imports = [../../system];
} }

View file

@ -1,15 +1,15 @@
{...}: { {...}: {
import = [ imports = [
"./audio.nix" ./audio.nix
"./boot.nix" ./boot.nix
"./env.nix" ./env.nix
"./networking.nix" ./networking.nix
"./persistence.nix" # ./persistence.nix
"./bluetooth.nix" ./bluetooth.nix
"./btrfs.nix" ./btrfs.nix
"./fonts.nix" ./fonts.nix
"./nix.nix" # ./nix.nix
"./steam.nix" # ./steam.nix
]; ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";

View file

@ -1,10 +1,11 @@
{nixpkgs, ...}: { {nixpkgs, ...}: {
nix = {
nixPath = ["nixpkgs=${nixpkgs}"]; nixPath = ["nixpkgs=${nixpkgs}"];
gc = { gc = {
automatic = true; automatic = true;
dates = "05:30"; dates = "05:30";
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
};
settings = { settings = {
keep-outputs = true; keep-outputs = true;
auto-optimise-store = true; auto-optimise-store = true;