-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
77 lines (71 loc) · 1.99 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
{
description = "RemiliaForever's NixOS Flake";
inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
#nixpkgs-16facaed.url = "github:nixos/nixpkgs/16facaed1bda622e07aa534017bf0b6735071cd1";
nixos-hardware.url = "github:nixos/nixos-hardware";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
jovian = {
#url = "github:bigsaltyfishes/Jovian-NixOS";
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs =
inputs@{
self,
nixpkgs-unstable,
nixos-hardware,
home-manager,
sops-nix,
jovian,
aagl,
...
}:
let
system = "${hostname.arch}";
hostname = import ./hostname.nix;
mypkgs = import ./pkgs {
pkgs = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in
{
nixosConfigurations."koumakan-${hostname.hostname}" = nixpkgs-unstable.lib.nixosSystem {
inherit system;
specialArgs = {
inherit hostname;
inherit nixos-hardware;
inherit aagl;
};
modules = [
./hosts/${hostname.hostname}/os
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
home-manager.users.remilia = import ./hosts/${hostname.hostname}/home;
home-manager.extraSpecialArgs = {
inherit mypkgs;
};
}
jovian.nixosModules.jovian
];
};
};
}