about summary refs log tree commit diff
path: root/home/default.nix
blob: 6a8c83035dabefe47eb5c1c4f5cdcca315a5c868 (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
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
{ self, unstable, nixpkgs-2311, ... } @ inputs:

{
  "sefidel@alpha" = self.lib.mkHome {
    username = "sefidel";
    hostname = "alpha";
    pkgs = import unstable {
      system = "x86_64-linux";
      overlays = with inputs; [
        rust.overlays.default
        neovim-nightly.overlays.default
        nur.overlay
        nixpkgs-wayland.overlay
      ];
    };

    extraModules = [
      ./profiles/populate.nix
      ./profiles/base
      ./profiles/gui
      ./profiles/browsing
      ./profiles/development
      ./profiles/communication
      ./profiles/multimedia
      ./profiles/creative
      ./profiles/research
      ./profiles/security
      ./profiles/gaming


      inputs.sops-nix.homeManagerModules.sops
    ];

    version = "22.05";
  };

  "sefidel@haruka" = self.lib.mkHome {
    username = "sefidel";
    hostname = "haruka";
    pkgs = import unstable {
      system = "x86_64-linux";
      overlays = with inputs; [
        rust.overlays.default
        neovim-nightly.overlays.default
        nur.overlay
        nixpkgs-wayland.overlay
        # TODO: fractional scaling is broken on 1.8+
        (final: prev: {
          sway-unwrapped = (prev.sway-unwrapped.override({ wlroots = nixpkgs-2311.legacyPackages.x86_64-linux.wlroots_0_16; }))
              .overrideAttrs(rec {
                version = "1.8.1";

                src = prev.fetchFromGitHub {
                  owner = "swaywm";
                  repo = "sway";
                  rev = version;
                  hash = "sha256-WxnT+le9vneQLFPz2KoBduOI+zfZPhn1fKlaqbPL6/g=";
                };

                patches = [
                  (prev.fetchpatch {
                    name = "Fix-libinput-switch-case.patch";
                    url = "https://github.com/swaywm/sway/commit/dee032d0a0ecd958c902b88302dc59703d703c7f.patch";
                    sha256 = "sha256-dx+7MpEiAkxTBnJcsT3/1BO8rYRfNLecXmpAvhqGMD0=";
                  })
                ];
            });
         })
      ];
    };

    extraModules = [
      ./profiles/populate.nix
      ./profiles/base
      ./profiles/gui
      ./profiles/browsing
      ./profiles/development
      ./profiles/communication
      ./profiles/multimedia
      ./profiles/creative
      ./profiles/research
      ./profiles/security


      inputs.sops-nix.homeManagerModules.sops
    ];

    version = "23.11";
  };

  "sefidel@cobalt" = self.lib.mkHome {
    username = "sefidel";
    hostname = "cobalt";
    pkgs = import unstable { system = "x86_64-linux"; overlays = with inputs; [ rust.overlays.default neovim-nightly.overlay ]; };

    extraModules = [
      ./profiles/populate.nix
      ./profiles/base
      ./profiles/development
    ];

    version = "23.05";
  };
}