blob: 3c4415a8e02bd68934949c1844f48966abc54882 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
{
description = "Mora Unie Youer's NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nurpkgs.url = "github:nix-community/NUR";
nyxpkgs.url = "github:chaotic-cx/nyx";
home-manager.url = "github:nix-community/home-manager";
# Secure Boot bootloader
lanzaboote.url = "github:nix-community/lanzaboote";
# Setup NixOS sound subsystem better
musnix.url = "github:musnix/musnix";
# Applications
fjordlauncher.url = "github:unmojang/FjordLauncher";
wezterm.url = "github:wezterm/wezterm?dir=nix";
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org/"
"https://chaotic-nyx.cachix.org/"
"https://unmojang.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
"unmojang.cachix.org-1:OfHnbBNduZ6Smx9oNbLFbYyvOWSoxb2uPcnXPj4EDQY="
];
};
outputs = {
self,
nixpkgs,
nurpkgs,
nyxpkgs,
home-manager,
lanzaboote,
musnix,
fjordlauncher,
wezterm,
...
} @ inputs:
let
system = "x86_64-linux";
in {
nixosConfigurations.sapphire = nixpkgs.lib.nixosSystem rec {
inherit system;
specialArgs = { inherit inputs; };
modules = [
nurpkgs.modules.nixos.default
nyxpkgs.nixosModules.default
home-manager.nixosModules.home-manager
lanzaboote.nixosModules.lanzaboote
musnix.nixosModules.default
{
nixpkgs.overlays = [
fjordlauncher.overlays.default
];
}
# System Configuration
./system-sapphire.nix
# User Configurations
# mora@sapphire
({ pkgs, ... }: {
users.users.mora = {
isNormalUser = true;
extraGroups = [ "audio" "docker" "libvirtd" "lp" "scanner" "video" "wireshark" "wheel" ];
shell = pkgs.nushell;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = specialArgs;
home-manager.users.mora = import ./user-mora.nix;
})
];
};
};
}
|