-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
79 lines (79 loc) · 2.85 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
{
description = "NixOS configuration";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# catppuccin.url = "github:catppuccin/nix";
nixvim = {
url = "github:nix-community/nixvim";
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ self
, nixpkgs
, home-manager
, nixvim
, # catppuccin,
...
}:
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hardware-configuration.nix
./nixos
# catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
{
# catppuccin = {
# enable = false;
# accent = "flamingo"; # Type: one of “blue”, “flamingo”, “green”, “lavender”, “maroon”, “mauve”, “peach”, “pink”, “red”, “rosewater”, “sapphire”, “sky”, “teal”, “yellow”
# flavor = "mocha"; # Type: one of “latte”, “frappe”, “macchiato”, “mocha”
# };
home-manager.backupFileExtension = ".backup"; # remove duplicates from ~/.config/fontconfig/conf.d/
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules = [
nixvim.homeManagerModules.nixvim
# catppuccin.homeManagerModules.catppuccin
];
home-manager.users.dim = (import ./home inputs);
nix = {
settings = {
trusted-users = [
"root"
"dim"
];
keep-outputs = true;
keep-derivations = true;
experimental-features = [
"nix-command"
"flakes"
];
substituters = [
"https://cache.nixos.org/"
# "https://cache.komunix.org/"
"https://nix-community.cachix.org"
];
extra-substituters = [
"https://devenv.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
extra-trusted-public-keys = [
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
fallback = true;
};
};
}
];
};
};
}