-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
82 lines (77 loc) · 2.33 KB
/
flake.nix
File metadata and controls
82 lines (77 loc) · 2.33 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
description = "mk489's nix config'";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.inputs.nixpkgs.follows = "unstable";
home-manager.url = "github:nix-community/home-manager";
proxmox-nixos.url = "github:SaumonNet/proxmox-nixos";
grub2-themes.url = "github:vinceliuice/grub2-themes";
zen-browser.url = "github:0xc000022070/zen-browser-flake";
portainer-on-nixos.url = "gitlab:cbleslie/portainer-on-nixos";
portainer-on-nixos.inputs.nixpkgs.follows = "nixpkgs";
flake-programs-sqlite.url = "github:wamserma/flake-programs-sqlite";
flake-programs-sqlite.inputs.nixpkgs.follows = "unstable";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "unstable";
mango = {
url = "github:mangowm/mango";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let
mk489 = "mk489";
omen = "omen";
libx = import ./lib {
inherit
inputs
;
};
in
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
# sudo nixos-rebuild switch --flake .#mk489
nixosConfigurations = {
mk489 = libx.mkHost {
username = mk489;
enableGuiApps = false;
};
omen = libx.mkHost {
username = omen;
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
# home-manager -- build --flake .mk489
# home-manager -- switch --flake .mk489
homeConfigurations = {
mk489 = libx.mkHome {
system = "x86_64-linux";
username = mk489;
enableGuiApps = false;
mods = [
(
{ ... }:
{
services.sync-photos.enable = true;
}
)
];
};
omen = libx.mkHome {
system = "x86_64-linux";
username = omen;
};
};
templates = {
simple = {
description = "Minimal flake with only a devshell";
path = ./templates/simple;
};
};
defaultTemplate = inputs.self.templates.simple;
};
}