started work on a new live environment nix config using impermanence

This commit is contained in:
2024-11-17 21:42:06 -05:00
parent 7a60cdd513
commit 6350837b37
7 changed files with 127 additions and 240 deletions

41
hosts/live-env/config.nix Executable file
View File

@@ -0,0 +1,41 @@
{ lib, pkgs, modulesPath, inputs, ... }:
let
userConfig = {
isNormalUser = true;
initialPassword = "1234";
shell = pkgs.zsh;
extraGroups = [ "wheel" ];
};
in
{
imports = [ ./hardware.nix ];
movOpts = {
sysEnv = {
issue.enable = true;
stylixConfig.enable = true;
nixSettings.enable = true;
};
hardwareCfg = {
networkModule.enable = true;
bootLoader.enable = true;
};
softwareCfg = {
sysPkgs.enable = true;
sysProgs.enable = true;
sysServices.enable = true;
};
};
users = {
groups.persist = { };
users = {
impermanence = userConfig;
persistence = userConfig // {
extraGroups = userConfig.extraGroups ++ [ "persist" ];
};
root.initialPassword = "1234";
};
};
}