-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.nix
More file actions
34 lines (32 loc) · 715 Bytes
/
user.nix
File metadata and controls
34 lines (32 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ pkgs
, inputs,
config
,
primary_user
, ...
}:
let
name = "Samiul Basir Fahim";
packages = with pkgs; [
fish
];
in
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs;};
users.${username} = {
imports = [ (import ./../home) ];
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "22.11";
programs.home-manager.enable = true;
};
};
users.users = primary_user;
users.users.root.initialPassword = "123456789";
# services.getty.autologinUser = "fahim";
#nix.settings.allowed-users = [ "deng" ];
}