rearranging
This commit is contained in:
1 parent
ca822f8bca
commit
f27a7a64a3
7 files changed
+20
-41
No files matched your search
+6
-1
@@ -12,6 +12,10 @@
|
||||
{
|
||||
imports = [
|
||||
./core.nix
|
||||
./rootUser.nix
|
||||
(import ./user.nix {
|
||||
user = user;
|
||||
})
|
||||
] ++ (if enableFonts then [
|
||||
./fonts.nix
|
||||
] else [ ]) ++ (if hardware.enable then [
|
||||
@@ -22,8 +26,9 @@
|
||||
firewall = firewall;
|
||||
})
|
||||
] else [ ]) ++ (if enableSSH then [
|
||||
(import ./core.nix {
|
||||
(import ./ssh.nix {
|
||||
enableSSHServer = true;
|
||||
user = user;
|
||||
})
|
||||
] else [ ]);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.root.shell = pkgs.zsh;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{ user }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.${user.name} = {
|
||||
shell = pkgs.zsh;
|
||||
isNormalUser = true;
|
||||
description = user.name;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
packages = with pkgs; [
|
||||
nixd
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user