nixos-configuration/hive/framework/default.nix

150 lines
3.3 KiB
Nix
Raw Normal View History

2024-01-30 17:27:52 +00:00
{ pkgs, lib, system, home-manager, ... }:
{
imports = [
./hardware-configuration.nix
home-manager.nixosModules.home-manager
];
2024-01-23 20:55:28 +00:00
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
environment = {
# Excludes some KDE plasma applications from the default
# install. We choose to use KDE since, with wayland support,
# is is capable of fractional scaling.
plasma5.excludePackages = with pkgs.libsForQt5; [
elisa
gwenview
khelpcenter
konsole
okular
oxygen
plasma-browser-integration
print-manager
];
systemPackages = with pkgs; [
gcc
git
((vim_configurable.override {}).customize {
name = "vim";
vimrcConfig.customRC = ''
set nocompatible
syntax on
set colorcolumn=80,100
set expandtab " Spaces instead of tabs.
set list " Show hidden characters.
set listchars=tab:>\ ,trail:-,nbsp:+
set shiftwidth=2 " # of spaces to use for each (auto)indent.
set tabstop=2 " # of spaces a <Tab> in the file counts for.
'';
})
];
variables = {
EDITOR = "vim";
};
};
fonts.packages = with pkgs; [ iosevka ];
hardware.bluetooth.enable = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
2024-01-30 09:29:18 +00:00
users.jrpotter = { pkgs, ... }: {
imports = [
../../users/jrpotter
2024-01-31 14:13:42 +00:00
../../users/jrpotter/anki
2024-01-30 09:29:18 +00:00
];
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
2023-12-11 14:36:33 +00:00
};
2024-01-30 09:29:18 +00:00
};
home.packages = with pkgs; [
bitwarden
chromium
firefox
gimp
2024-01-30 17:27:52 +00:00
obsidian
2024-01-30 09:29:18 +00:00
virt-manager
vlc
wezterm
zotero
];
};
# Used to pass non-default parameters to submodules.
extraSpecialArgs = {
inherit system;
stateVersion = "23.05";
};
};
2024-01-23 20:55:28 +00:00
networking = {
hostName = "framework";
networkmanager.enable = true;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2024-01-30 17:27:52 +00:00
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
];
2023-12-11 14:36:33 +00:00
# virt-manager requires dconf to remember settings.
programs.dconf.enable = true;
2024-01-23 20:55:28 +00:00
# Recommended when using pipewire (https://nixos.wiki/wiki/PipeWire).
security.rtkit.enable = true;
services = {
mullvad-vpn.enable = true;
openssh.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
xserver = {
enable = true;
desktopManager.plasma5.enable = true;
desktopManager.xterm.enable = false;
displayManager.defaultSession = "plasmawayland";
xkbOptions = "ctrl:swapcaps";
};
};
2024-01-23 20:58:09 +00:00
time.timeZone = "America/Denver";
users.users.jrpotter = {
isNormalUser = true;
extraGroups = [
"docker"
"networkmanager"
2023-12-11 14:36:33 +00:00
"libvirtd"
"wheel"
];
};
2024-01-23 20:55:28 +00:00
virtualisation = {
libvirtd.enable = true;
docker.rootless = {
enable = true;
# Sets the `DOCKER_HOST` variable to the rootless Docker instance for normal
# users by default.
setSocketVariable = true;
};
};
system.stateVersion = "23.05";
}