+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanUpdate minecraft server8dbea4b

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