-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
103 lines (99 loc) · 2.73 KB
/
flake.nix
File metadata and controls
103 lines (99 loc) · 2.73 KB
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
{
description = "nixed0";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hardware.url = "github:NixOS/nixos-hardware";
ucodenix.url = "github:uxodb/ucodenix";
catppuccin.url = "github:catppuccin/nix?ref=v1.2.1";
nix-colors.url = "github:misterio77/nix-colors";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
json2nix = {
url = "github:sempruijs/json2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
solaar = {
url = "github:Svenum/Solaar-Flake";
inputs.nixpkgs.follows = "nixpkgs";
};
alejandra = {
url = "github:kamadorueda/alejandra/4.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
noctalia = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
oisd = {
url = "https://big.oisd.nl/domainswild";
flake = false;
};
hagezi = {
url = "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/wildcard/pro-onlydomains.txt";
flake = false;
};
};
outputs = {
self,
nixpkgs,
home-manager,
alejandra,
...
} @ inputs: let
xSettings = {
system = "x86_64-linux";
timezone = "Europe/Vienna";
locale = "en_US.UTF-8";
username = "uxodb";
hostname = "nixed0";
appConfig = "${inputs.self}/home/dotfiles";
theme = "catppuccin-mocha";
};
xpkgs = nixpkgs.legacyPackages.${xSettings.system};
in {
devShells.${xSettings.system} = {
default = import ./shells/build.nix {
pkgs = xpkgs;
inherit xSettings;
};
};
nixosConfigurations.nixed0 = nixpkgs.lib.nixosSystem {
system = xSettings.system;
specialArgs = {
inherit inputs;
inherit xSettings;
};
modules = [
./nixos/configuration.nix
inputs.sops-nix.nixosModules.sops
inputs.catppuccin.nixosModules.catppuccin
inputs.ucodenix.nixosModules.default
inputs.solaar.nixosModules.default
inputs.noctalia.nixosModules.default
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
];
};
homeConfigurations."uxodb" = home-manager.lib.homeManagerConfiguration {
pkgs = xpkgs;
extraSpecialArgs = {
inherit inputs;
inherit xSettings;
};
modules = [
./home/default.nix
inputs.catppuccin.homeManagerModules.catppuccin
inputs.nix-colors.homeManagerModules.default
inputs.noctalia.homeModules.default
inputs.sops-nix.homeManagerModules.sops
];
};
};
}