-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
101 lines (85 loc) · 2.95 KB
/
Copy pathflake.nix
File metadata and controls
101 lines (85 loc) · 2.95 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
description = "NixOS configuration";
inputs = {
# Nix packages
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Nix asahi
nixos-asahi.url = "github:nix-community/nixos-apple-silicon";
nixos-asahi.inputs.nixpkgs.follows = "nixpkgs";
# Nix hardware
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
# Home manager
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Lanzaboote (secure boot support)
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
# SOPS (secrets manager)
sops.url = "github:Mic92/sops-nix";
sops.inputs.nixpkgs.follows = "nixpkgs";
opsops.url = "github:vst/opsops";
opsops.inputs.nixpkgs.follows = "nixpkgs";
# Niri
niri.url = "github:sodiboo/niri-flake";
niri.inputs.nixpkgs.follows = "nixpkgs";
# Zen browser
zen-browser.url = "github:0xc000022070/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
zen-browser.inputs.home-manager.follows = "home-manager";
# Spicetify (spotify)
spicetify.url = "github:Gerg-L/spicetify-nix";
spicetify.inputs.nixpkgs.follows = "nixpkgs";
# Nixcord (discord)
nixcord.url = "github:kaylorben/nixcord";
nixcord.inputs.nixpkgs.follows = "nixpkgs";
# VSCode
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
nix-vscode-extensions.inputs.nixpkgs.follows = "nixpkgs";
# Android
android.url = "github:tadfisher/android-nixpkgs/stable";
android.inputs.nixpkgs.follows = "nixpkgs";
# Dank Material Shell
dgop.url = "github:AvengeMedia/dgop";
dgop.inputs.nixpkgs.follows = "nixpkgs";
dms.url = "github:AvengeMedia/DankMaterialShell";
dms.inputs.nixpkgs.follows = "nixpkgs";
dms.inputs.dgop.follows = "dgop";
};
outputs =
inputs@{ nixpkgs, ... }:
{
# Desktop
nixosConfigurations.desktop =
let
system.triple = "x86_64-linux";
default = import ./utilities/default.nix {
inherit system;
pkgs = nixpkgs.legacyPackages.${system.triple};
};
in
nixpkgs.lib.nixosSystem {
system = system.triple;
specialArgs = { inherit default inputs system; };
modules = [
./configuration/${system.triple}.nix
];
};
# Notebook
nixosConfigurations.notebook =
let
system.triple = "aarch64-linux";
default = import ./utilities/default.nix {
inherit system;
pkgs = nixpkgs.legacyPackages.${system.triple};
};
in
nixpkgs.lib.nixosSystem {
system = system.triple;
specialArgs = { inherit default inputs system; };
modules = [
./configuration/${system.triple}.nix
];
};
};
}