1
0
Fork 0
nix-configuration/systems/x86_64-linux/Khanda/default.nix

100 lines
2.4 KiB
Nix
Raw Permalink Normal View History

{
config,
lib,
options,
namespace,
...
}:
let
# Do not change this value! This tracks when NixOS was installed on your system.
stateVersion = "24.05";
hostName = "Khanda";
in
{
imports = [ ./hardware-configuration.nix ];
system.stateVersion = stateVersion;
networking.hostName = hostName;
# 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
'';
###*** 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;
writing.enable = true;
2024-06-24 18:01:51 +00:00
};
2024-06-24 18:01:51 +00:00
# Enable Secure Boot support.
bootloader = {
enable = true;
2024-06-24 18:01:51 +00:00
secureboot.enable = true;
tpm2.enable = true;
};
2024-06-24 18:01:51 +00:00
# Change the default text editor. Options are "emacs", "nano", or "vim".
editor = "nano";
# Enable GPU support.
gpu.intel.enable = true;
powerManagement.enable = true;
# Enable support for primary RAID array (just in case)
raid.storage.enable = true;
2024-06-25 18:13:15 +00:00
services = {
autoUpgrade = {
enable = true;
configDir = config.${namespace}.secrets.nixConfigFolder;
extraFlags = "--build-host hevana";
onCalendar = "weekly";
user = config.users.users.aires.name;
};
syncthing = {
enable = true;
home = "/home/aires/.config/syncthing";
2024-12-13 15:38:23 +00:00
tray.enable = true;
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;
# Define extra Flatpak packages to install.
packages = options.${namespace}.ui.flatpak.packages.default ++ [
2024-06-24 18:01:51 +00:00
"org.keepassxc.KeePassXC"
];
useBindFS = true;
2024-06-24 18:01:51 +00:00
};
};
users.aires.enable = true;
};
}