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));
mkHostConfig = host:
mkHostConfig = host: let
defaultConf = rec {
hostname = host;
uid = 1000;
user = "lilith";
home = /home/${user};
};
in
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
specialArgs = {
inherit inputs outputs;
conf = defaultConf;
};
modules = [
./hosts/${host}/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 = [
"./audio.nix"
"./boot.nix"
"./env.nix"
"./networking.nix"
"./persistence.nix"
"./bluetooth.nix"
"./btrfs.nix"
"./fonts.nix"
"./nix.nix"
"./steam.nix"
imports = [
./audio.nix
./boot.nix
./env.nix
./networking.nix
# ./persistence.nix
./bluetooth.nix
./btrfs.nix
./fonts.nix
# ./nix.nix
# ./steam.nix
];
system.stateVersion = "24.11";

View file

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