Seperated all config stuff into common nixos modules

This commit is contained in:
chrisbell committed 2026-10-03 12:39:10 -05:00
1 parent e2d34c6d1e
commit cc15d4aaf9
10 files changed
+176 -301

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
users.users.chris.packages = with pkgs; [
telegram-desktop discord inkscape obsidian obs-studio
r2modman signal-desktop flameshot vscodium
nautilus onlyoffice-desktopeditors vlc orca-slicer blender grayjay
kdePackages.kdenlive kicad
];
}
+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}
+52
View File
@@ -0,0 +1,52 @@
{ pkgs, inputs, ... }:
{
imports = [ inputs.home-manager.nixosModules.default ];
nix.settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
nix.gc = {
automatic = true;
dates = "weekly";
persistent = true;
options = "";
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
i18n.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";
};
services.xserver.xkb = { layout = "us"; variant = ""; };
users.users.chris = {
isNormalUser = true;
description = "chris";
extraGroups = [ "networkmanager" "wheel" ];
};
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
};
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
environment.systemPackages = with pkgs; [
vim wget git helix nixd nixfmt btop fastfetch lazygit
];
}
+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
programs.nix-ld.enable = true;
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
programs.steam.enable = true;
}
+8
View File
@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gnome ];
};
}
+28
View File
@@ -0,0 +1,28 @@
{ pkgs, ... }:
{
programs.direnv.enable = true;
users.users.chris.shell = pkgs.zsh;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
interactiveShellInit = "fastfetch";
shellAliases = {
ll = "ls -l";
calc = "kalker";
n = "nvim .";
};
histSize = 10000;
histFile = "$HOME/.zsh_history";
setOptions = [ "HIST_IGNORE_ALL_DUPS" ];
oh-my-zsh = {
enable = true;
theme = "clean";
plugins = [ "git" "sudo" "direnv" ];
};
};
environment.systemPackages = [ pkgs.kalker ];
}
+17
View File
@@ -0,0 +1,17 @@
{ pkgs, ... }:
{
boot.supportedFilesystems = { exfat = true; ntfs = true; };
services.udisks2.enable = true;
services.gvfs.enable = true;
environment.systemPackages = [ pkgs.udiskie ];
systemd.user.services.udiskie = {
description = "udiskie automount daemon";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs.udiskie}/bin/udiskie --automount --notify --tray";
Restart = "always";
};
};
}