summaryrefslogtreecommitdiff
path: root/machines/git/configuration.nix
blob: a9f8da7ce897dd54c42ef5ca52e1a440e4512eb5 (plain)
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
{ lib, inputs, pkgs, ... }:

let
  drive = "/dev/sda";
in {
  imports = [
    ./hardware-configuration.nix
    inputs.home-manager.nixosModules.default

    (import ../../disko.nix { device = drive; })

  ] ++ (map (path: ../../modules/${path}) [
    "core/global.nix"
    "core/impermanence.nix"
    "ssh.nix"
    "git/compromyse.nix"
    "git/cgit.nix"
  ]);

  networking.hostName = "git";

  programs.fuse.userAllowOther = true;
  home-manager = {
    extraSpecialArgs = { inherit inputs; };
    useGlobalPkgs = true;
    useUserPackages = true;
    users = {
      "compromyse" = import ./home.nix;
    };
  };
}