mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
move nixos modules to nixos-modules
This commit is contained in:
parent
7394c5f317
commit
611796f02e
29 changed files with 225 additions and 7 deletions
40
nixos-modules/users/root/default.nix
Normal file
40
nixos-modules/users/root/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.jopejoe1.user.root;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.user.root = {
|
||||
enable = lib.mkEnableOption "Enable root user";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.users.root = {
|
||||
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
|
||||
];
|
||||
};
|
||||
home-manager.users.root = {
|
||||
home = {
|
||||
username = config.users.users.root.name;
|
||||
homeDirectory = config.users.users.root.home;
|
||||
stateVersion = config.system.stateVersion;
|
||||
};
|
||||
jopejoe1 = {
|
||||
common = {
|
||||
enable = true;
|
||||
gui.enable = config.jopejoe1.gui.enable;
|
||||
fonts = {
|
||||
serif = config.fonts.fontconfig.defaultFonts.serif;
|
||||
sansSerif = config.fonts.fontconfig.defaultFonts.sansSerif;
|
||||
monospace = config.fonts.fontconfig.defaultFonts.monospace;
|
||||
emoji = config.fonts.fontconfig.defaultFonts.emoji;
|
||||
};
|
||||
};
|
||||
git.enable = true;
|
||||
direnv.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue