-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
98 lines (87 loc) · 2.54 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
description = "My NixOS systems and Home Manager configurations";
inputs = {
disko = {
url = "github:nix-community/disko/?ref=v1.9.0";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence?rev=3ed3f0eaae9fcc0a8331e77e9319c8a4abd8a71a";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.5.2";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix/release-24.11";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
disko,
firefox-addons,
home-manager,
impermanence,
nix-flatpak,
nixos-hardware,
nixpkgs,
sops-nix,
stylix,
unstable,
...
} @ inputs: let
system = "x86_64-linux";
user = "roberto";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
pkgsUnstable = import unstable {
inherit system;
config = {
allowUnfree = true;
};
};
in {
nixosConfigurations = {
kellanved = nixpkgs.lib.nixosSystem {
specialArgs = {inherit pkgs pkgsUnstable;};
modules = [
./systems/x86_64-linux/kellanved
disko.nixosModules.disko
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${user} = import (./. + "/homes/${user}@kellanved");
home-manager.extraSpecialArgs = {
inherit pkgsUnstable;
firefox-addons-allowUnfree = pkgsUnstable.callPackage firefox-addons {};
};
home-manager.sharedModules = [inputs.sops-nix.homeManagerModules.sops];
}
impermanence.nixosModules.impermanence
nix-flatpak.nixosModules.nix-flatpak
nixos-hardware.nixosModules.framework-12th-gen-intel
sops-nix.nixosModules.sops
stylix.nixosModules.stylix
];
};
};
};
}