2023-12-28 21:33:09 -08:00
|
|
|
|
{
|
2024-01-05 21:00:41 -08:00
|
|
|
|
pkgs,
|
2025-04-21 10:25:32 -07:00
|
|
|
|
userSettings,
|
2025-04-21 16:49:27 -07:00
|
|
|
|
systemSettings,
|
2024-01-05 21:00:41 -08:00
|
|
|
|
...
|
|
|
|
|
}: {
|
2025-04-18 15:55:34 -07:00
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
2025-04-21 10:25:32 -07:00
|
|
|
|
programs = {
|
|
|
|
|
gamemode.enable = true;
|
2025-01-31 20:26:08 -08:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
_1password.enable = true;
|
|
|
|
|
_1password-gui = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Certain features, including CLI integration and system authentication support,
|
|
|
|
|
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
|
|
|
|
|
polkitPolicyOwners = [userSettings.username];
|
|
|
|
|
};
|
2024-07-28 01:35:02 -07:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
noisetorch.enable = true;
|
|
|
|
|
|
|
|
|
|
fish.enable = true;
|
|
|
|
|
virt-manager.enable = true;
|
2024-06-23 05:22:07 -07:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
nh = {
|
|
|
|
|
enable = true;
|
2025-04-21 16:49:27 -07:00
|
|
|
|
# clean.enable = true;
|
|
|
|
|
# clean.extraArgs = "--keep-since 4d --keep 3";
|
|
|
|
|
flake = "/home/nmarks/.dotfiles#nixosConfigurations.nixos";
|
2025-04-21 10:25:32 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
neovim = {
|
|
|
|
|
enable = true;
|
|
|
|
|
defaultEditor = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
steam = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = with pkgs; steam.override {extraPkgs = pkgs: [attr];};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
lfs.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
mtr.enable = true;
|
|
|
|
|
gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
pinentryPackage = pkgs.pinentry-curses;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
kdeconnect.enable = true;
|
2024-07-21 14:43:30 -07:00
|
|
|
|
};
|
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
hardware.bluetooth.enable = true;
|
2024-07-12 19:49:34 -07:00
|
|
|
|
|
2024-10-11 09:23:38 -07:00
|
|
|
|
xdg.portal = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
|
|
|
|
|
};
|
2025-04-21 10:25:32 -07:00
|
|
|
|
virtualisation = {
|
|
|
|
|
containers.enable = true;
|
|
|
|
|
podman = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# dockerCompat = true;
|
|
|
|
|
};
|
|
|
|
|
docker.enable = true;
|
2024-10-11 09:23:38 -07:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
libvirtd.enable = true;
|
2024-12-05 15:40:18 -08:00
|
|
|
|
};
|
2024-05-19 07:52:27 -07:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
nix.settings.trusted-users = ["root" userSettings.username];
|
|
|
|
|
systemd = {
|
|
|
|
|
targets = {
|
|
|
|
|
sleep.enable = false;
|
|
|
|
|
suspend.enable = false;
|
|
|
|
|
hibernate.enable = false;
|
|
|
|
|
hybrid-sleep.enable = false;
|
|
|
|
|
};
|
2024-01-05 21:00:41 -08:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
packages = [pkgs.observatory];
|
2024-01-27 23:46:57 -08:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
services.monitord.wantedBy = ["multi-user.target"];
|
2024-09-27 14:29:46 -07:00
|
|
|
|
};
|
|
|
|
|
|
2025-04-19 21:57:56 -07:00
|
|
|
|
i18n = {
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
supportedLocales = ["all"];
|
|
|
|
|
|
|
|
|
|
extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inputMethod = {
|
|
|
|
|
type = "fcitx5";
|
|
|
|
|
enable = true;
|
|
|
|
|
fcitx5.waylandFrontend = true;
|
|
|
|
|
fcitx5.addons = with pkgs; [
|
|
|
|
|
# fcitx5-gtk
|
|
|
|
|
# kdePackages.fcitx5-qt
|
|
|
|
|
rime-data
|
|
|
|
|
fcitx5-rime
|
|
|
|
|
fcitx5-rose-pine
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-12-28 21:33:09 -08:00
|
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
|
|
|
# services.xserver.libinput.enable = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
2025-04-30 12:37:35 -07:00
|
|
|
|
# users.defaultUserShell = pkgs.fish;
|
2025-04-21 10:25:32 -07:00
|
|
|
|
users.users.${userSettings.username} = {
|
2025-04-30 12:37:35 -07:00
|
|
|
|
shell = pkgs.fish;
|
2023-12-28 21:33:09 -08:00
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "Natalie Marks";
|
2024-05-19 07:53:04 -07:00
|
|
|
|
extraGroups = ["networkmanager" "wheel" "docker"];
|
2024-01-17 06:35:02 -08:00
|
|
|
|
# openssh.authorizedKeys.keyFiles = ["~/.ssh/id_ed25519.pub"];
|
2023-12-28 21:33:09 -08:00
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
firefox
|
|
|
|
|
vim
|
2025-03-31 13:37:38 -07:00
|
|
|
|
steam
|
|
|
|
|
|
2024-01-05 21:00:41 -08:00
|
|
|
|
# thunderbird
|
2023-12-28 21:33:09 -08:00
|
|
|
|
];
|
|
|
|
|
};
|
2025-04-21 10:25:32 -07:00
|
|
|
|
environment = {
|
|
|
|
|
sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
|
|
|
|
|
variables.EDITOR = "nvim";
|
2024-01-05 21:00:41 -08:00
|
|
|
|
|
2025-04-21 10:25:32 -07:00
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
|
vim
|
|
|
|
|
];
|
2024-01-05 21:00:41 -08:00
|
|
|
|
};
|
2023-12-28 21:33:09 -08:00
|
|
|
|
|
2024-01-17 06:35:02 -08:00
|
|
|
|
networking = {
|
2025-04-21 16:49:27 -07:00
|
|
|
|
hostName = systemSettings.host; # Define your hostname.
|
2024-01-17 06:35:02 -08:00
|
|
|
|
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
firewall = {
|
2024-04-16 01:47:15 -07:00
|
|
|
|
allowedTCPPorts = [22 80 443];
|
2024-01-17 06:35:02 -08:00
|
|
|
|
enable = true;
|
|
|
|
|
};
|
2024-01-19 06:46:26 -08:00
|
|
|
|
interfaces.enp11s0.wakeOnLan = {
|
|
|
|
|
enable = true;
|
2024-01-19 06:48:10 -08:00
|
|
|
|
policy = ["magic"];
|
2024-01-19 06:46:26 -08:00
|
|
|
|
};
|
2024-01-17 06:35:02 -08:00
|
|
|
|
};
|
2024-01-29 01:54:02 -08:00
|
|
|
|
|
2023-12-28 21:33:09 -08:00
|
|
|
|
# Open ports in the firewall.
|
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
|
}
|