add (user config): add basic home and nixos user config
This commit is contained in:
parent
658ded8bc1
commit
47a2de35e0
3 changed files with 32 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ in
|
|||
|
||||
paths = {
|
||||
inherit homeDir;
|
||||
configDir = "${homeDir}/NewProjects/nixos-config";
|
||||
|
||||
sopsKeyFile = "${homeDir}/.security/sops/age/keys.txt";
|
||||
};
|
||||
|
|
|
|||
16
users/geekiot/home/default.nix
Normal file
16
users/geekiot/home/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ userData, customFunctions, ... }:
|
||||
{
|
||||
imports = customFunctions.scan {
|
||||
path = ./.;
|
||||
exclude = [ ./default.nix ];
|
||||
};
|
||||
|
||||
home = {
|
||||
username = userData.info.userName;
|
||||
homeDirectory = userData.paths.homeDir;
|
||||
stateVersion = "25.05";
|
||||
sessionVariables = {
|
||||
CONFIG = userData.paths.configDir;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
users/geekiot/host/default.nix
Normal file
15
users/geekiot/host/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, customFunctions, ... }:
|
||||
{
|
||||
imports = customFunctions.scan {
|
||||
path = ./.;
|
||||
exclude = [ ./default.nix ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
age
|
||||
sops
|
||||
efibootmgr
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Reference in a new issue