-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
56 lines (49 loc) · 1.28 KB
/
flake.nix
File metadata and controls
56 lines (49 loc) · 1.28 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
{
description = "NixOS Coding Club Bordeaux";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs_unstable.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {self, ...} @ inputs: let
cfg = {
system = "x86_64-linux";
config.allowUnfree = true;
};
pkgs = import inputs.nixpkgs (
cfg // {overlays = [(_: _: {unstable = import inputs.nixpkgs_unstable cfg;})];}
);
extraArgs = {
inherit pkgs;
gnomeExtensions = with pkgs.gnomeExtensions; [
blur-my-shell
tiling-assistant
caffeine
desktop-icons-ng-ding
];
};
inherit (inputs.nixpkgs) lib;
in {
formatter.${cfg.system} = extraArgs.pkgs.alejandra;
nixosConfigurations = rec {
default = nixos;
nixos = lib.nixosSystem {
inherit (cfg) system;
specialArgs = extraArgs;
modules = [
./config/default.nix
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = extraArgs;
backupFileExtension = "backup";
};
}
];
};
};
};
}