-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
130 lines (117 loc) · 3.88 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
description = "Framework 13 NixOS Configuration";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Home manager
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# NixOS Hardware quirks
hardware.url = "github:nixos/nixos-hardware";
# NixColors
nix-colors.url = "github:misterio77/nix-colors";
# Neovim configuration
kickstart-nix-nvim.url = "github:dp138504/kickstart-nix.nvim";
#kickstart-nix-nvim.url = "git+file:///home/dap/src/kickstart-nix.nvim";
sddm-surgar-candy-nix = {
url = "gitlab:Zhaith-Izaliel/sddm-sugar-candy-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser.url = "github:MarceColl/zen-browser-flake";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
wezterm = {
url = "github:wez/wezterm/main?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
home-manager,
hardware,
nix-colors,
kickstart-nix-nvim,
sddm-surgar-candy-nix,
nixos-cosmic,
sops-nix,
...
}@inputs:
let
inherit (self) outputs;
systems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
overlays = import ./overlays { inherit inputs; };
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
fw13-nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
};
modules = [
./hosts/fw13-nixos/configuration.nix
./modules/nixos
hardware.nixosModules.framework-13th-gen-intel
hardware.nixosModules.common-gpu-nvidia-nonprime
sops-nix.nixosModules.sops
sddm-surgar-candy-nix.nixosModules.default
{
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
}
nixos-cosmic.nixosModules.default
];
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
"dap@fw13-nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {
inherit inputs outputs nix-colors;
};
modules = [
./hosts/fw13-nixos/home.nix
./modules/home-manager
];
};
"dap" = home-manager.lib.homeManagerConfiguration {
# Kali Config
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {
inherit inputs outputs nix-colors;
};
modules = [
./hosts/fw13-kali/home.nix
./modules/home-manager
];
};
"dap@dylan-acenet" = home-manager.lib.homeManagerConfiguration {
# Work Config
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {
inherit inputs outputs nix-colors;
};
modules = [
./hosts/dylan-acenet/home.nix
./modules/home-manager
];
};
};
};
}