-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
79 lines (66 loc) · 2.34 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 = "Kieran's Nix configuration";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# NixOS hardware support
nixos-hardware.url = "github:NixOS/nixos-hardware";
# SOPS secrets
sops-nix.url = "github:Mic92/sops-nix";
# Disko
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
# Firefox Nightly
firefox-nightly.url = "github:nix-community/flake-firefox-nightly";
firefox-nightly.inputs.nixpkgs.follows = "nixpkgs";
# NUR
nur.url = "github:nix-community/nur";
# VSCode extensions
vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
# VSCode extensions
nixpkgs-spotify.url = "github:nixos/nixpkgs/1b7a6a6e57661d7d4e0775658930059b77ce94a4";
};
outputs =
{
self,
nixpkgs,
...
}@inputs:
let
inherit (self) outputs;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
stateVersion = "24.05";
helpers = import ./lib/helpers.nix { inherit inputs outputs stateVersion; };
in
{
nixosConfigurations = {
# Main PC
fsociety = helpers.mkSystem {
type = "desktop";
hostname = "fsociety";
username = "kieran";
desktop = "gnome";
graphics = "amd";
};
# Lenovo IdeaPad Slim 5
ssociety = helpers.mkSystem {
type = "laptop";
hostname = "ssociety";
username = "kieran";
desktop = "gnome";
graphics = "amd";
};
# Test VM
testvm = helpers.mkSystem {
type = "desktop";
hostname = "testvm";
username = "kieran";
desktop = "gnome";
};
};
packages = helpers.forAllSystems (system: nixpkgs.legacyPackages.${system});
};
}