nixos-config/configs/nixos/ni/default.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, foodogsquaredLib, foodogsquaredModulesPath, ... }:
{
imports = [
"${foodogsquaredModulesPath}/profiles/desktop"
# Include the results of the hardware scan.
2021-11-25 13:45:48 +00:00
./hardware-configuration.nix
./modules
2021-11-25 13:45:48 +00:00
];
hosts.ni = {
hardware.qol.enable = true;
2023-12-13 10:16:40 +00:00
networking = {
enable = true;
wireguard.enable = true;
};
services.backup.enable = true;
2023-12-13 10:16:40 +00:00
setups = {
desktop.enable = true;
development.enable = true;
music.enable = true;
gaming.enable = true;
};
};
2023-06-30 05:38:22 +00:00
disko.devices = import ./disko.nix {
disks = [ "/dev/nvme0n1" ];
};
services.openssh.hostKeys = [{
path = config.sops.secrets."ssh-key".path;
type = "ed25519";
}];
2022-12-31 03:13:27 +00:00
sops.secrets = foodogsquaredLib.sops-nix.getSecrets ./secrets/secrets.yaml {
"ssh-key" = { };
2023-07-05 03:38:58 +00:00
};
2022-12-31 03:13:27 +00:00
2023-09-11 02:14:39 +00:00
# The keyfile required for the secrets to be decrypted.
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
# My custom configuration with my custom modules starts here.
suites = {
archiving.enable = true;
2023-09-30 06:02:40 +00:00
browsers.chromium.enable = true;
filesystem.setups.personal-webstorage.enable = true;
};
2023-09-17 05:58:59 +00:00
# Basically, the most basic nixpkgs configuration.
2023-09-24 11:20:05 +00:00
environment.variables.NIXPKGS_CONFIG = lib.mkForce ./config/nixpkgs/config.nix;
# Enable Nix channels.
nix.channel.enable = true;
2023-12-17 03:57:44 +00:00
# Make Nix experimental.
nix.package = pkgs.nixStable;
2023-12-17 03:57:44 +00:00
2023-12-13 10:16:40 +00:00
# Some more experimentals for Nix.
nix.settings = {
auto-allocate-uids = true;
experimental-features = [ "auto-allocate-uids" ];
};
2023-12-10 03:26:06 +00:00
system.stateVersion = "24.05"; # Yes! I read the comment!
}