-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·83 lines (69 loc) · 2.38 KB
/
flake.nix
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
{
description = "my Primary flake";
outputs = inputs@{ self, nixpkgs, nixpkgs-stable, stylix, ... }:
let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages."x86_64-linux";
pkgs-stable = import nixpkgs-stable {
system = "x86_64-linux";
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
in {
nixosConfigurations = {
"Titanic" = lib.nixosSystem {
system = "x86_64-linux";
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.disko.nixosModules.default
inputs.impermanence.nixosModules.impermanence
inputs.sops-nix.nixosModules.sops
inputs.xremap-flake.nixosModules.default
./hosts/Titanic/configuration.nix
];
specialArgs = {
inherit inputs;
};
};
"ServerBoy" = lib.nixosSystem {
system = "x86_64-linux";
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.disko.nixosModules.default
inputs.impermanence.nixosModules.impermanence
inputs.sops-nix.nixosModules.sops
inputs.xremap-flake.nixosModules.default
./hosts/ServerBoy/configuration.nix
];
specialArgs = {
inherit inputs;
};
};
};
};
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.11";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager-stable.url = "github:nix-community/home-manager/release-23.11";
home-manager-stable.inputs.nixpkgs.follows = "nixpkgs-stable";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
stylix.url = "github:danth/stylix";
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
xremap-flake.url = "github:xremap/nix-flake";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland";
};
ags.url = "github:Aylur/ags";
};
}