add (user config): add basic home and nixos user config

This commit is contained in:
Kirill Samoylenkov 2025-09-26 22:21:14 +05:00
parent 658ded8bc1
commit 47a2de35e0
3 changed files with 32 additions and 0 deletions

View file

@ -16,6 +16,7 @@ in
paths = { paths = {
inherit homeDir; inherit homeDir;
configDir = "${homeDir}/NewProjects/nixos-config";
sopsKeyFile = "${homeDir}/.security/sops/age/keys.txt"; sopsKeyFile = "${homeDir}/.security/sops/age/keys.txt";
}; };

View 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;
};
};
}

View 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";
}