DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 8c36e1a019c5bde84a09768918dd4d3ff2432db5 nix-arta/modules/hosts/ws/alice/default.nix -rw-r--r-- 4.4 KiB
8c36e1a0Jonni Liljamo feat: alice initial 3 days ago
                                                                                
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
  inputs,
  lib,
  ...
}: let
  channel = "unstable";
  system = "x86_64-linux";
  hostName = "alice";
in {
  flake.nixosConfigurations.${hostName} = inputs."nixpkgs-${channel}".lib.nixosSystem {
    inherit system;
    specialArgs = {
      inherit inputs;
      lib = inputs."nixpkgs-${channel}".lib.extend (
        final: prev:
          import ../../../../lib {
            inherit inputs;
            lib = final;
          }
      );
    };
    modules = [
      {
        networking.hostName = hostName;
      }

      ./_nixos

      inputs.impermanence.nixosModules.impermanence
      inputs.sops-nix.nixosModules.sops
      inputs."home-manager-${channel}".nixosModules.home-manager

      ({
        config,
        pkgs,
        ...
      }: let
        user = "skye";
        importBoth = module: [
          inputs.self.modules.nixos.${module}
          {
            home-manager.users.${user}.imports = [inputs.self.modules.homeManager.${module}];
          }
        ];
      in {
        imports = with inputs.self.modules.nixos;
          [
            core
            amdgpu
            audio
            nvim
            nix
            steam
            tailscale
            obs
            lazygit
            ssh-agent
            gnupg

            home-manager
            {
              home-manager.users.${user} = {
                imports = with inputs.self.modules.homeManager;
                  [
                    mangohud
                    git
                  ]
                  ++ [
                    {
                      home.stateVersion = config.system.stateVersion;

                      # Not yet in modules or anything.
                      home.packages = with pkgs; [blender];

                      services.wpaperd = {
                        enable = true;
                        settings = {
                          DP-3 = {
                            path = "/home/skye/Nextcloud/Wallpapers/forest";
                            duration = "15m";
                          };
                          DP-2 = {
                            path = "/home/skye/Nextcloud/Wallpapers/minimalgals";
                            duration = "15m";
                          };
                        };
                      };
                    }

                    # TODO: how to position these configuration extensions
                    {
                      arta.git = {
                        email = "jonni@liljamo.com";
                        name = "Jonni Liljamo";
                        sendemail.enable = true;
                      };

                      arta.hyprland.extraConfig = {
                        exec-once = [
                          "waybar"
                        ];

                        monitor = [
                          "DP-2,2560x1440@59,0x0,1"
                          "DP-3,3840x2160@60,2560x0,1,bitdepth,10,cm,hdr,sdrbrightness,1.1,sdrsaturation,0.9"
                        ];

                        workspace = [
                          "1,monitor:DP-2,default:true"
                          "2,monitor:DP-2"
                          "3,monitor:DP-2"
                          "4,monitor:DP-2"
                          "5,monitor:DP-2"
                          "6,monitor:DP-3,default:true"
                          "7,monitor:DP-3"
                          "8,monitor:DP-3"
                          "9,monitor:DP-3"
                        ];
                      };

                      arta.waybar.extraConfig = {
                        output = ["DP-2"];

                        modules-left = ["hyprland/workspaces"];
                        modules-right = [
                          "wireplumber"
                          "custom/sep"
                          "disk"
                          "custom/sep"
                          "network"
                          "custom/sep"
                          "clock"
                          "custom/sep"
                          "hyprland/language"
                          "tray"
                        ];

                        "network".interface = "enp4s0";
                      };
                    }
                  ];
              };
            }
          ]
          ++ [inputs.self.modules.nixos.${user}]
          ++ lib.flatten [
            (importBoth "hyprland")
            (importBoth "shell")
            (importBoth "passmenu")
          ];
      })
    ];
  };
}