-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
74 lines (64 loc) · 2.53 KB
/
default.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
let
scheme = "tokyo-night-dark";
in
{
config,
pkgs,
lib,
inputs,
outputs,
nix-colors,
user,
...
}: {
imports = [
nix-colors.homeManagerModules.default
./per-device.nix # per device hypr configuration
./hardware-configuration.nix # device-specific hardware configuration
../standard.nix # standard or server config template
#../../home/barrier # Does not support Wayland
#../../home/codium
#../../home/copyq
#../../home/input-leap
#../../home/rkvm
./disko-config.nix # device-specific declarative disk partitioning and file system configuration
./impermanence.nix
];
sops.age.keyFile = "/persist/var/lib/sops-nix/key.txt"; # This is using an age key that is expected to already be in the filesystem
sops.defaultSopsFormat = "yaml";
sops.secrets.user_password_hashed.neededForUsers = true;
sops.secrets."hello_world" = { }; # Example secret. Will be mounted at /run/secrets/hello_world
################# LOCAL SECRETS MANAGEMENT ################################
# uncomment this line to use sops secrets within the local repo
#sops.defaultSopsFile = ../../secrets/secrets.yaml;
################# PRIVATE SECRETS MANAGEMENT ##############################
# uncomment this line to use sops secrets stores within a private repo
# this will attempt to clone the (private) repo at the path defined
# in the "private-secrets" input defined within flake.nix
sops.defaultSopsFile = "${builtins.toString inputs.private-secrets}/secrets/secrets.yaml";
# NOTE: If there are changes to the repo, run "nix flake lock --update-input private-secrets"
colorscheme = inputs.nix-colors.colorSchemes.${scheme};
home-manager.users.${user}.colorscheme = inputs.nix-colors.colorSchemes.${scheme};
networking = {
enableIPv6 = false;
hostName = "desktop-nix";
hostId = "70b9a734"; # FIXME required for ZFS. Should be unique.
firewall.enable = true;
networkmanager.enable = true;
};
hardware.opengl.enable = true;
# services = {
# xserver = {
# enable = true;
# };
# };
environment = {
systemPackages = with pkgs; [
age
qmk
qmk-udev-rules
sops
];
shellAliases.rebuild = "sudo rm -rf /tmp/dotfiles && sudo git clone --branch main https://github.com/psiri/nixos-config /tmp/dotfiles && sudo nixos-rebuild switch --flake /tmp/dotfiles/.#desktop-nix --impure";
};
}