2024-12-11 16:49:19 +00:00
|
|
|
{
|
|
|
|
config,
|
2024-12-14 07:11:38 +00:00
|
|
|
lib,
|
2024-12-11 22:56:03 +00:00
|
|
|
options,
|
2024-12-11 16:49:19 +00:00
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-24 15:38:28 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# Do not change this value! This tracks when NixOS was installed on your system.
|
|
|
|
stateVersion = "24.05";
|
2024-07-06 16:50:45 +00:00
|
|
|
hostName = "Khanda";
|
2024-06-24 15:38:28 +00:00
|
|
|
in
|
2024-05-07 22:02:59 +00:00
|
|
|
{
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-04-23 18:46:17 +00:00
|
|
|
|
2024-06-24 15:38:28 +00:00
|
|
|
system.stateVersion = stateVersion;
|
2024-07-06 16:50:45 +00:00
|
|
|
networking.hostName = hostName;
|
2024-06-24 15:38:28 +00:00
|
|
|
|
2024-12-14 07:11:38 +00:00
|
|
|
# Enable XWayland native scaling just for Khanda.
|
|
|
|
# This is a workaround to get the Surface Pen working in Obsidian
|
|
|
|
services.xserver.desktopManager.gnome.extraGSettingsOverrides = lib.mkForce ''
|
|
|
|
[org.gnome.mutter]
|
|
|
|
experimental-features = [ 'scale-monitor-framebuffer', 'xwayland-native-scaling', 'variable-refresh-rate' ]
|
|
|
|
[org.gnome.shell]
|
|
|
|
disable-extension-version-validation = true
|
|
|
|
'';
|
|
|
|
|
2024-06-24 15:38:28 +00:00
|
|
|
###*** Configure your system below this line. ***###
|
|
|
|
# Configure the system.
|
2024-12-06 18:04:47 +00:00
|
|
|
${namespace} = {
|
2024-06-24 18:01:51 +00:00
|
|
|
apps = {
|
|
|
|
development.enable = true;
|
|
|
|
media.enable = true;
|
|
|
|
office.enable = true;
|
|
|
|
recording.enable = true;
|
|
|
|
social.enable = true;
|
2024-09-28 21:22:11 +00:00
|
|
|
writing.enable = true;
|
2024-06-24 18:01:51 +00:00
|
|
|
};
|
2024-06-24 15:38:28 +00:00
|
|
|
|
2024-06-24 18:01:51 +00:00
|
|
|
# Enable Secure Boot support.
|
|
|
|
bootloader = {
|
2024-06-24 15:38:28 +00:00
|
|
|
enable = true;
|
2024-06-24 18:01:51 +00:00
|
|
|
secureboot.enable = true;
|
|
|
|
tpm2.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-06-24 15:38:28 +00:00
|
|
|
|
2024-06-24 18:01:51 +00:00
|
|
|
# Change the default text editor. Options are "emacs", "nano", or "vim".
|
|
|
|
editor = "nano";
|
2024-06-24 15:38:28 +00:00
|
|
|
|
|
|
|
# Enable GPU support.
|
|
|
|
gpu.intel.enable = true;
|
|
|
|
|
2024-11-25 22:57:14 +00:00
|
|
|
powerManagement.enable = true;
|
|
|
|
|
2024-08-29 13:14:27 +00:00
|
|
|
# Enable support for primary RAID array (just in case)
|
2024-09-06 19:26:40 +00:00
|
|
|
raid.storage.enable = true;
|
2024-08-29 13:14:27 +00:00
|
|
|
|
2024-06-25 18:13:15 +00:00
|
|
|
services = {
|
2024-10-01 13:57:42 +00:00
|
|
|
autoUpgrade = {
|
|
|
|
enable = true;
|
2024-12-09 18:30:39 +00:00
|
|
|
configDir = config.${namespace}.secrets.nixConfigFolder;
|
2024-10-25 13:11:02 +00:00
|
|
|
extraFlags = "--build-host hevana";
|
2024-10-01 13:57:42 +00:00
|
|
|
onCalendar = "weekly";
|
|
|
|
user = config.users.users.aires.name;
|
|
|
|
};
|
2024-11-24 16:38:09 +00:00
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
home = "/home/aires/.config/syncthing";
|
2024-12-13 15:38:23 +00:00
|
|
|
tray.enable = true;
|
2024-11-24 16:38:09 +00:00
|
|
|
user = "aires";
|
|
|
|
web.enable = true;
|
|
|
|
};
|
2024-12-08 22:46:34 +00:00
|
|
|
tor = {
|
|
|
|
enable = true;
|
|
|
|
browser.enable = true;
|
|
|
|
snowflake-proxy.enable = true;
|
|
|
|
};
|
2024-06-25 18:13:15 +00:00
|
|
|
virtualization.enable = true;
|
|
|
|
};
|
2024-06-24 16:24:21 +00:00
|
|
|
|
2024-06-24 18:01:51 +00:00
|
|
|
ui = {
|
2024-11-18 16:10:20 +00:00
|
|
|
desktops.gnome.enable = true;
|
2024-06-24 18:01:51 +00:00
|
|
|
flatpak = {
|
|
|
|
# Enable Flatpak support.
|
|
|
|
enable = true;
|
|
|
|
|
2024-12-11 16:49:19 +00:00
|
|
|
# Define extra Flatpak packages to install.
|
2024-12-11 22:56:03 +00:00
|
|
|
packages = options.${namespace}.ui.flatpak.packages.default ++ [
|
2024-06-24 18:01:51 +00:00
|
|
|
"org.keepassxc.KeePassXC"
|
|
|
|
];
|
2024-07-13 17:27:13 +00:00
|
|
|
|
|
|
|
useBindFS = true;
|
2024-06-24 18:01:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-24 16:38:09 +00:00
|
|
|
users.aires.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-04-23 18:46:17 +00:00
|
|
|
}
|