system
This commit is contained in:
parent
231cb21334
commit
c8f7273dd0
5 changed files with 33 additions and 20 deletions
15
flake.nix
15
flake.nix
|
|
@ -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
1
home/persist.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{...}: {}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
{...}: {
|
||||
import = ["../system"];
|
||||
imports = [../../system];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{nixpkgs, ...}: {
|
||||
nix = {
|
||||
nixPath = ["nixpkgs=${nixpkgs}"];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "05:30";
|
||||
options = "--delete-older-than 7d";
|
||||
|
||||
};
|
||||
settings = {
|
||||
keep-outputs = true;
|
||||
auto-optimise-store = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue