Commit
This commit is contained in:
34
modules/core/defaults.nix
Normal file
34
modules/core/defaults.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ inputs, den, ... }:
|
||||
{
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
den.ctx.default =
|
||||
let
|
||||
configState = "24.05";
|
||||
in
|
||||
{
|
||||
nixos.system.stateVersion = configState;
|
||||
homeManager.home.stateVersion = configState;
|
||||
};
|
||||
|
||||
den.ctx.host = {
|
||||
includes = [
|
||||
den._.define-user
|
||||
# Set all hostnames automatically
|
||||
(
|
||||
{ host, ... }:
|
||||
{
|
||||
nixos = {
|
||||
networking.hostName = host.name;
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
nixos = {
|
||||
users.mutableUsers = false;
|
||||
};
|
||||
};
|
||||
|
||||
den.ctx.hm-host.nixos.home-manager.useGlobalPkgs = true;
|
||||
}
|
||||
Reference in New Issue
Block a user