blob: 73383413294992dcdf6bb27569c8aadd586d6d03 (
plain) (
blame)
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 = "My Nix(\"OS\" or \"\") configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hardware.url = "github:NixOS/nixos-hardware";
impermanence.url = "github:nix-community/impermanence";
nur.url = "github:nix-community/NUR";
nix-index.url = "github:Mic92/nix-index-database";
wallpapers = {
url = "github:Baitinq/Wallpapers";
flake = false;
};
};
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
let
user = "baitinq";
secrets = import ./secrets;
dotfiles = ./dotfiles;
hosts = [
{ host = "phobos"; system = "x86_64-linux"; extraOverlays = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; }
{ host = "luna"; system = "x86_64-linux"; extraOverlays = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; }
];
hardwares = [
{ hardware = "laptop"; }
{ hardware = "chromebook"; }
{ hardware = "virtualbox"; }
];
commonInherits = {
inherit (nixpkgs) lib;
inherit inputs nixpkgs home-manager;
inherit user secrets dotfiles hosts hardwares;
extraModules = [ ];
};
in
{
nixosConfigurations = import ./hosts (commonInherits // {
isNixOS = true;
isIso = false;
isHardware = true;
});
homeConfigurations = import ./hosts (commonInherits // {
isNixOS = false;
isIso = false;
isHardware = false;
});
isoConfigurations = import ./hosts (commonInherits // {
isNixOS = true;
isIso = true;
isHardware = false;
user = "nixos";
});
nixosNoHardwareConfigurations = import ./hosts (commonInherits // {
isNixOS = true;
isIso = false;
isHardware = false;
});
};
}
|