2024-11-01 12:04:24 -04:00
# NixOS's declarative configuration calculates which software packages need to be installed and then soft-links the storage paths of these packages in the Nix Store to /run/current-system, and by modifying environment variables like PATH
2024-11-29 18:31:17 -05:00
{ lib , config , pkgs , zen-browser , hyprland , inputs , agenix , pkgs-unstable , . . . }:
2024-10-14 17:28:31 -04:00
let
unstable = import <nixpkgs> {
overlays = pkgs . overlays ;
} ;
2024-10-14 18:35:04 -04:00
in
2024-10-14 17:28:31 -04:00
{
imports =
2024-10-14 18:35:04 -04:00
[
./environment.nix
2024-10-14 17:28:31 -04:00
./hardware-configuration.nix
2024-11-29 18:31:17 -05:00
# (import ./modules/containers.nix { inherit pkgs inputs config lib pkgs-unstable ;})
2024-11-01 12:04:24 -04:00
./modules/containers.nix
2024-10-14 18:35:04 -04:00
./modules/display.nix
./modules/files.nix
./modules/fonts.nix
2024-11-29 18:31:17 -05:00
./modules/musnix.nix
2024-10-14 18:35:04 -04:00
./modules/network.nix
./modules/nix.nix
2024-11-01 12:04:24 -04:00
# ./modules/qt.nix
2024-10-14 18:35:04 -04:00
./modules/security.nix
./modules/users.nix
./modules/wm.nix
2024-10-14 19:37:56 -04:00
./modules/xdg.nix
2024-10-14 18:35:04 -04:00
] ;
2024-10-14 17:28:31 -04:00
programs . hyprland = {
enable = true ;
xwayland . enable = true ;
# package = pkgs.hyprland;
# package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# portalPackage = pkgs.xdg-desktop-portal-hyprland;
# portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
} ;
# Redirect syslog to TTY12
systemd . services . " s y s t e m d - j o u r n a l d - t t y 1 2 " = {
description = " F o r w a r d s y s l o g t o T T Y 1 2 " ;
serviceConfig = {
ExecStart = " / b i n / s h - c ' j o u r n a l c t l - f > / d e v / t t y 1 2 ' " ;
} ;
wantedBy = [ " m u l t i - u s e r . t a r g e t " ] ;
} ;
2024-11-29 18:31:17 -05:00
systemd . services . logid = {
description = " L o g i t e c h C o n f i g u r a t i o n D a e m o n " ;
startLimitIntervalSec = 0 ;
after = [ " m u l t i - u s e r . t a r g e t " ] ;
wants = [ " m u l t i - u s e r . t a r g e t " ] ;
serviceConfig = {
Type = " s i m p l e " ;
ExecStart = " / r u n / c u r r e n t - s y s t e m / s w / b i n / l o g i d " ;
User = " r o o t " ;
} ;
wantedBy = [ " m u l t i - u s e r . t a r g e t " ] ;
} ;
2024-10-14 17:28:31 -04:00
# Install firefox.
programs . firefox . enable = true ;
programs . zsh . enable = true ;
programs . nix-ld . enable = true ;
# programs.nix-ld.libraries = with pkgs; [
# libusb
# kdePackages.qt5compat kdePackages.full
# libsForQt5.full
# libGL
# gcc glib xorg.libXext
# ];
virtualisation . docker = {
2024-11-01 12:04:24 -04:00
enable = false ;
enableNvidia = true ;
2024-10-14 17:28:31 -04:00
rootless = {
enable = true ;
setSocketVariable = true ;
} ;
daemon . settings = {
userland-proxy = false ;
ipv6 = false ;
} ;
} ;
services = {
printing . enable = true ;
ollama = {
enable = true ;
acceleration = " c u d a " ;
models = " / v a r / l i b / o l l a m a / m o d e l s " ;
environmentVariables = { } ;
} ;
input-remapper = {
enable = true ;
enableUdevRules = true ;
package = pkgs . input-remapper ;
serviceWantedBy = [ " g r a p h i c a l . t a r g e t " ] ;
} ;
# dbus.implementation = "dbus"; # The option `services.dbus.implementation' has conflicting definition values: - In `/nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source/nixos/modules/programs/wayland/uwsm.nix': "broker"
udisks2 . enable = true ;
logrotate . enable = true ;
openssh = {
enable = true ;
ports = [ 22 ] ;
settings = {
PasswordAuthentication = true ;
AllowUsers = [ " w a y n e " ] ; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true ;
X11Forwarding = false ;
PermitRootLogin = " n o " ; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
} ;
} ;
# kmonad = {
# enable = true;
# keyboards = {
# myKMonadOutput = {
# device = "/dev/input/by-id/usb-Hanvon_Ugee_Shortcut_Remote_000000000000000-event-kbd";
# config = builtins.readFile /home/wayne/.config/kmonad/hanvon-ugee.kbd;
# };
# };
# };
2024-11-01 12:04:24 -04:00
avahi = { # Printing
2024-10-14 17:28:31 -04:00
enable = true ;
nssmdns4 = true ;
openFirewall = true ;
} ;
pipewire = {
enable = true ;
alsa . enable = true ;
alsa . support32Bit = true ;
pulse . enable = true ;
2024-11-29 18:31:17 -05:00
jack . enable = true ;
2024-10-14 17:28:31 -04:00
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
2024-11-29 18:31:17 -05:00
# wireplumber.enable = true;
2024-10-14 17:28:31 -04:00
} ;
2024-11-29 18:46:42 -05:00
hardware . openrgb = {
enable = true ;
package = pkgs . openrgb-with-all-plugins ;
motherboard = " i n t e l " ;
server . port = 6742 ;
} ;
2024-10-14 17:28:31 -04:00
} ;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment . systemPackages = with pkgs ; [
2024-11-01 12:04:24 -04:00
( pkgs . catppuccin-sddm . override {
flavor = " m o c h a " ;
font = " N o t o S a n s " ;
fontSize = " 9 " ;
background = " ${ /home/wayne/Pictures/marvin.png } " ;
loginBackground = true ;
# clockEnabled = true;
} )
2024-10-14 17:28:31 -04:00
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget git sshfs
2024-11-29 18:31:17 -05:00
pciutils usbutils
2024-10-14 17:28:31 -04:00
zsh
2024-11-01 12:04:24 -04:00
cryptsetup agenix . packages . x86_64-linux . default
2024-10-14 17:28:31 -04:00
home-manager
wpa_supplicant
lynx
nix-index nix-prefetch-scripts nix-prefetch
docker_27 docker-compose
2024-11-01 12:04:24 -04:00
# direnv nix-direnv
2024-10-14 17:28:31 -04:00
# xdg-desktop-portal-hyprland
clinfo glxinfo vulkan-tools wayland-utils wl-clipboard
kdePackages . kdeplasma-addons kdePackages . qtstyleplugin-kvantum kdePackages . full kdePackages . qtwebengine kdePackages . qtpositioning kdePackages . qtlocation
kdePackages . ark plasma5Packages . kwallet-pam kdePackages . dolphin kdePackages . kwallet kdePackages . kwalletmanager kdePackages . konsole
evtest input-remapper dbus uwsm # keyd
2024-11-01 12:04:24 -04:00
egl-wayland
2024-10-14 17:28:31 -04:00
cudaPackages . cudatoolkit # cudaPackages.cuda-samples
cifs-utils mesa libGL udiskie
2024-11-01 12:04:24 -04:00
libsForQt5 . qtstyleplugin-kvantum
catppuccin-sddm-corners
2024-10-14 17:28:31 -04:00
# steam-run
2024-11-01 12:04:24 -04:00
lxqt . pavucontrol-qt
2024-11-29 18:31:17 -05:00
i2c-tools
2024-11-01 12:04:24 -04:00
android-udev-rules
2024-11-29 18:31:17 -05:00
logiops
2024-10-14 17:28:31 -04:00
] ;
system . stateVersion = " 2 4 . 0 5 " ; # Did you read the comment?
}