-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
66 lines (60 loc) · 1.79 KB
/
Copy pathflake.nix
File metadata and controls
66 lines (60 loc) · 1.79 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
{
description = "NixOS configuration for Igor's desktop";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v1.1.0";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
disko,
lanzaboote,
home-manager,
...
}:
let
sharedModules = [
disko.nixosModules.disko
lanzaboote.nixosModules.lanzaboote
home-manager.nixosModules.home-manager
./configuration.nix
./modules/boot/secure-boot.nix
./modules/boot/splash.nix
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.igor = import ./home.nix;
# Activation otherwise aborts the first time a home.file/programs.*
# target already exists as a real, non-Home-Manager-owned file
# (e.g. VS Code's own settings.json and argv.json, written before
# home.nix declared them). This renames the collision aside
# (settings.json -> settings.json.backup) instead of failing.
backupFileExtension = "backup";
};
}
];
in
{
nixosConfigurations.igor-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = sharedModules ++ [ ./hosts/igor-desktop ];
};
# install.sh uses the Disko app pinned by flake.lock.
apps.x86_64-linux.disko = {
type = "app";
program = "${disko.packages.x86_64-linux.default}/bin/disko";
};
};
}