summaryrefslogtreecommitdiffstats
path: root/templates/desktop/flake.nix
blob: e0b2e40d5433f24c834b3ee6e56e953b4c1a1be3 (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
{
  description = "Flake for the myHostname host";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
  inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs";
  inputs.nixos-config-reborn = {
    url = "git+https://git.huh.gdn/NixOS/nixos-config-reborn";
    inputs = {
      nixpkgs.follows = "nixpkgs";
      nixpkgs-unstable.follows = "nixpkgs-unstable";
    };
  };
  inputs.nixos-hardware.url = "github:NixOS/nixos-hardware";

  outputs = inputs @ { self, nixpkgs, nixos-config-reborn, nixos-hardware, ... }: {

    nixosConfigurations.myHostname = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = (with nixos-hardware.nixosModules; [
        common-cpu-intel
        common-pc-ssd
      ]) ++ (with nixos-config-reborn.nixosModules; [
        default
        profiles.desktop

        usecases.desktop.development
        usecases.desktop.graphical.gaming
        usecases.desktop.graphical.kodi
        usecases.desktop.networkManager
      ]) ++ [
        ./hardware-configuration.nix

        ./boot.nix
        ./host.nix
        ./tinc.nix

        ({ ... }: {
          home-manager.users.minijackson.home.stateVersion = "21.05";
          home-manager.users.root.home.stateVersion = "21.05";

          system.stateVersion = "21.05";
        })
      ];
    };

  };
}