194 lines
5.8 KiB
Nix
194 lines
5.8 KiB
Nix
# 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
|
|
{ lib, config, pkgs, zen-browser, hyprland, inputs, agenix, pkgs-unstable, ... }:
|
|
let
|
|
unstable = import <nixpkgs> {
|
|
overlays = pkgs.overlays;
|
|
};
|
|
in
|
|
{
|
|
imports =
|
|
[
|
|
./environment.nix
|
|
./hardware-configuration.nix
|
|
|
|
# (import ./modules/containers.nix { inherit pkgs inputs config lib pkgs-unstable ;})
|
|
./modules/containers.nix
|
|
./modules/display.nix
|
|
./modules/files.nix
|
|
./modules/fonts.nix
|
|
./modules/musnix.nix
|
|
./modules/network.nix
|
|
./modules/nix.nix
|
|
# ./modules/qt.nix
|
|
./modules/security.nix
|
|
./modules/tailscale.nix
|
|
./modules/users.nix
|
|
./modules/wm.nix
|
|
./modules/xdg.nix
|
|
];
|
|
|
|
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."systemd-journald-tty12" = {
|
|
description = "Forward syslog to TTY12";
|
|
serviceConfig = {
|
|
ExecStart = "/bin/sh -c 'journalctl -f > /dev/tty12'";
|
|
};
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
systemd.services.logid = {
|
|
description = "Logitech Configuration Daemon";
|
|
startLimitIntervalSec = 0;
|
|
after = [ "multi-user.target" ];
|
|
wants = [ "multi-user.target" ];
|
|
serviceConfig = {
|
|
Type = "simple";
|
|
ExecStart = "/run/current-system/sw/bin/logid";
|
|
User = "root";
|
|
};
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
|
|
# 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 = {
|
|
enable = false;
|
|
enableNvidia = true;
|
|
rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
daemon.settings = {
|
|
userland-proxy = false;
|
|
ipv6 = false;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
printing.enable = true;
|
|
ollama = {
|
|
enable = true;
|
|
acceleration = "cuda";
|
|
models = "/var/lib/ollama/models";
|
|
environmentVariables = {};
|
|
};
|
|
input-remapper = {
|
|
enable = true;
|
|
enableUdevRules = true;
|
|
package = pkgs.input-remapper;
|
|
serviceWantedBy = [ "graphical.target" ];
|
|
};
|
|
# 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 = [ "wayne" ]; # Allows all users by default. Can be [ "user1" "user2" ]
|
|
UseDns = true;
|
|
X11Forwarding = false;
|
|
PermitRootLogin = "no"; # "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;
|
|
# };
|
|
# };
|
|
# };
|
|
avahi = { # Printing
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
|
|
# 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;
|
|
# wireplumber.enable = true;
|
|
};
|
|
hardware.openrgb = {
|
|
enable = true;
|
|
package = pkgs.openrgb-with-all-plugins;
|
|
motherboard = "intel";
|
|
server.port = 6742;
|
|
};
|
|
};
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
# $ nix search wget
|
|
environment.systemPackages = with pkgs; [
|
|
(pkgs.catppuccin-sddm.override {
|
|
flavor = "mocha";
|
|
font = "Noto Sans";
|
|
fontSize = "9";
|
|
background = "${/home/wayne/Pictures/marvin.png}";
|
|
loginBackground = true;
|
|
# clockEnabled = true;
|
|
})
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
wget git sshfs
|
|
pciutils usbutils
|
|
zsh
|
|
|
|
cryptsetup agenix.packages.x86_64-linux.default
|
|
home-manager
|
|
wpa_supplicant
|
|
lynx
|
|
nix-index nix-prefetch-scripts nix-prefetch
|
|
docker_27 docker-compose
|
|
|
|
# direnv nix-direnv
|
|
# 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
|
|
egl-wayland
|
|
cudaPackages.cudatoolkit # cudaPackages.cuda-samples
|
|
cifs-utils mesa libGL udiskie
|
|
|
|
libsForQt5.qtstyleplugin-kvantum
|
|
catppuccin-sddm-corners
|
|
# steam-run
|
|
lxqt.pavucontrol-qt
|
|
|
|
i2c-tools
|
|
android-udev-rules
|
|
tailscale
|
|
|
|
logiops
|
|
];
|
|
system.stateVersion = "24.05"; # Did you read the comment?
|
|
}
|