+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
8dbea4b
main
1{ config , pkgs , lib , self , pkgs-stable , ...} :{ 2imports = [ 3./hardware.nix 4../../mixins/nixos/headful.nix 5../../mixins/nixos/backups.nix 6]; 7 8home-manager . users . julia . imports = [ 9{ 10home . packages = with pkgs ; [ 11xwayland-satellite 12mpvpaper 13wev wl-clipboard hyprpicker 14qt5 . qtwayland qt6 . qtwayland 15oneko 16xsnow # TODO: https://github.com/Icelk/xsnow-comp-patch 17amdgpu_top nvtopPackages . amd 18]; 19 20services = { 21udiskie . settings . device_config = [ { device_file = "/dev/sda" ; ignore = true ; } ]; 22activitywatch . watchers . aw-watcher-windows = { 23package = pkgs . activitywatch ; 24settings = { poll_time = 5 ; exclude_title = true ; }; 25}; 26swayidle = let sc = " ${ pkgs . systemd } /bin" ; in { enable = true ; 27events = { before-sleep = "playerctl pause" ; }; 28extraArgs = [ "idlehint" "10" ]; 29timeouts = [{ timeout = 300 ; 30command = " ${ sc } /systemd-run --user --unit screensaver --scope ~/.local/bin/screensaver" ; 31resumeCommand = " ${ sc } /systemctl --user stop screensaver.scope" ; 32}]; 33}; 34}; 35systemd . user . services . swayidle . Service . Environment = 36"PATH= ${ lib . makeBinPath ( with pkgs ; [ bash coreutils fd mpv ])} " ; 37 38programs . kitty . settings . font_size = 10 ; 39slippi-launcher = { enable = true ; 40isoPath = "/media/alt/games/ROMs/Gamecube/Melee [GALE01]/game.iso" ; 41rootSlpPath = "/media/alt/games/melee/replays" ; 42}; 43} 44../../mixins/home/common.nix 45../../mixins/home/linux.nix 46../../mixins/home/btrfs.nix 47../../mixins/home/dev.nix 48../../mixins/home/graphical/common.nix 49../../mixins/home/graphical/music.nix 50../../mixins/home/graphical/games.nix 51../../mixins/home/graphical/media.nix 52] ++ builtins . attrValues self . outputs . homeModules ; 53 54programs = { 55niri . enable = true ; 56noctalia = { enable = true ; systemd . enable = true ; }; 57steam = { 58enable = true ; 59gamescopeSession . enable = true ; 60protontricks . enable = true ; 61localNetworkGameTransfers . openFirewall = true ; 62remotePlay . openFirewall = true ; 63}; 64gamescope . enable = true ; 65appimage = { enable = true ; binfmt = true ; }; 66nix-ld . enable = true ; 67m-overlay . enable = true ; 68}; 69 70services = { 71lact . enable = true ; 72flatpak . enable = true ; 73openssh . enable = true ; 74nfs . server = { 75enable = true ; 76exports = "/home/julia/videos/torrents 192.168.1.0/24(ro,fsid=0)" ; 77}; 78porkbun-ddns = { enable = true ; 79secret-key = config . age . secrets . porkbun-secret . path ; 80api-key = config . age . secrets . porkbun-api . path ; 81ipv6 = true ; 82ipv4 = false ; 83domains = [ "hal.pineapple.computer" ]; 84}; 85}; 86 87age . secrets = { 88porkbun-api . file = ../../secrets/porkbun-api.age ; 89porkbun-secret . file = ../../secrets/porkbun-secret.age ; 90}; 91 92xdg . portal = { 93wlr . enable = false ; 94config = { 95common . default = [ "gnome" "gtk" ]; 96niri = { 97default = [ "gnome" "gtk" ]; 98"org.freedesktop.impl.portal.Screencast" = "gnome" ; 99"org.freedesktop.impl.portal.Screenshot" = "gnome" ; 100}; 101}; 102}; 103 104 105networking = { 106hostName = "HAL" ; 107hosts . "127.0.0.1" = [ "HAL" ]; 108firewall . allowedTCPPorts = [ 1092049 # nft 11027016 # stationeers 111]; 112firewall . allowedUDPPorts = [ 11327016 # stationeers 11434196 34197 # factorio 11520582 # slippi discovery 116]; 117}; 118time . timeZone = "America/Los_Angeles" ; 119environment . pathsToLink = [ "/libexec" ]; 120}