]> gitweb.ps.run Git - flake_thinkpad/blob - config-user.nix
update
[flake_thinkpad] / config-user.nix
1 { config, pkgs, inputs, lib, ... } @ args:
2 let
3   wallpaper = pkgs.fetchurl {
4     url = "https://w.wallhaven.cc/full/ex/wallhaven-exrqrr.jpg";
5     sha256 = "sha256-RYN8KwJPDMfxrcosbpmjON0Y+I58IhB1Ke36LdohsxA=";
6   };
7 in
8 {
9   # Define a user account. Don't forget to set a password with ‘passwd’.
10   users.groups.ssh = {};
11   users.users = {
12     ps = {
13       isNormalUser = true;
14       description = "Patrick";
15       shell = pkgs.bash;
16       extraGroups = [ "networkmanager" "wheel" "dialout" "jackaudio" "lp" "incus-admin" ];
17     };
18     chirp = {
19       isSystemUser = true;
20       packages = [
21         pkgs.python3
22       ];
23       group = "ssh";
24       shell = pkgs.bash;
25       initialPassword = "chirp";
26     };
27   };
28   
29   security.polkit.enable = true;
30   security.sudo.wheelNeedsPassword = false;
31
32   home-manager = {
33     backupFileExtension = "backup";
34     extraSpecialArgs = {
35       inherit inputs;
36       inherit wallpaper;
37     };
38     users = {
39       "ps" = import ./home-ps.nix;
40       "root" = { home.stateVersion = "24.05"; };
41     };
42     sharedModules = [
43       (import ./home-common.nix)
44     ];
45   };
46 }