2024-08-02 17:55:48 -04:00
|
|
|
{ ... }:
|
2024-06-24 11:38:28 -04:00
|
|
|
|
|
|
|
let
|
|
|
|
# Do not change this value! This tracks when NixOS was installed on your system.
|
|
|
|
stateVersion = "24.05";
|
2024-07-06 12:50:45 -04:00
|
|
|
hostName = "Khanda";
|
2024-06-24 11:38:28 -04:00
|
|
|
in
|
2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-04-23 14:46:17 -04:00
|
|
|
|
2024-06-24 11:38:28 -04:00
|
|
|
system.stateVersion = stateVersion;
|
2024-07-06 12:50:45 -04:00
|
|
|
networking.hostName = hostName;
|
2024-06-24 11:38:28 -04:00
|
|
|
|
|
|
|
###*** Configure your system below this line. ***###
|
|
|
|
# Configure the system.
|
|
|
|
aux.system = {
|
|
|
|
# Enable to allow unfree (e.g. closed source) packages.
|
|
|
|
# Some settings may override this (e.g. enabling Nvidia GPU support).
|
|
|
|
# https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree
|
2024-06-24 12:24:21 -04:00
|
|
|
allowUnfree = true;
|
2024-06-24 11:38:28 -04:00
|
|
|
|
2024-06-24 14:01:51 -04:00
|
|
|
apps = {
|
|
|
|
development.enable = true;
|
|
|
|
media.enable = true;
|
|
|
|
office.enable = true;
|
|
|
|
recording.enable = true;
|
|
|
|
social.enable = true;
|
2024-07-29 17:11:12 -04:00
|
|
|
writing.enable = true;
|
2024-06-24 14:01:51 -04:00
|
|
|
};
|
2024-06-24 11:38:28 -04:00
|
|
|
|
2024-06-24 14:01:51 -04:00
|
|
|
# Enable Secure Boot support.
|
|
|
|
bootloader = {
|
2024-06-24 11:38:28 -04:00
|
|
|
enable = true;
|
2024-06-24 14:01:51 -04:00
|
|
|
secureboot.enable = true;
|
|
|
|
tpm2.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-06-24 11:38:28 -04:00
|
|
|
|
2024-06-24 14:01:51 -04:00
|
|
|
# Change the default text editor. Options are "emacs", "nano", or "vim".
|
|
|
|
editor = "nano";
|
2024-06-24 11:38:28 -04:00
|
|
|
|
|
|
|
# Enable GPU support.
|
|
|
|
gpu.intel.enable = true;
|
|
|
|
|
2024-08-29 09:14:27 -04:00
|
|
|
# Enable support for primary RAID array (just in case)
|
2024-09-06 15:26:40 -04:00
|
|
|
raid.storage.enable = true;
|
2024-08-29 09:14:27 -04:00
|
|
|
|
2024-06-24 14:01:51 -04:00
|
|
|
# Change how long old generations are kept for.
|
|
|
|
retentionPeriod = "14d";
|
2024-06-24 11:38:28 -04:00
|
|
|
|
2024-06-25 14:13:15 -04:00
|
|
|
services = {
|
|
|
|
autoUpgrade.enable = false;
|
|
|
|
virtualization.enable = true;
|
|
|
|
};
|
2024-06-24 12:24:21 -04:00
|
|
|
|
2024-06-24 14:01:51 -04:00
|
|
|
ui = {
|
2024-06-26 13:19:06 -04:00
|
|
|
desktops.gnome = {
|
|
|
|
enable = true;
|
2024-07-31 10:57:46 -04:00
|
|
|
tripleBuffering.enable = true;
|
2024-06-26 13:19:06 -04:00
|
|
|
};
|
2024-06-24 14:01:51 -04:00
|
|
|
flatpak = {
|
|
|
|
# Enable Flatpak support.
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Define Flatpak packages to install.
|
|
|
|
packages = [
|
|
|
|
"com.github.tchx84.Flatseal"
|
|
|
|
"com.github.wwmm.easyeffects"
|
|
|
|
"md.obsidian.Obsidian"
|
|
|
|
"org.keepassxc.KeePassXC"
|
2024-06-30 13:54:55 -04:00
|
|
|
"org.mozilla.firefox"
|
2024-06-24 14:01:51 -04:00
|
|
|
];
|
2024-07-13 13:27:13 -04:00
|
|
|
|
|
|
|
useBindFS = true;
|
2024-06-24 14:01:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-21 09:22:03 -04:00
|
|
|
users.aires = {
|
|
|
|
enable = true;
|
|
|
|
services = {
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
autostart = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-23 14:46:17 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Build remotely
|
|
|
|
nix.distributedBuilds = true;
|
2024-04-23 14:46:17 -04:00
|
|
|
}
|