2023-06-27 04:54:38 +00:00
|
|
|
{ system, inputs, pkgs, config, ... }: {
|
2023-06-28 06:14:30 +00:00
|
|
|
imports = [
|
|
|
|
../ironbar
|
|
|
|
];
|
|
|
|
|
2023-06-27 04:54:38 +00:00
|
|
|
system.extraDependencies = with pkgs; [ ungoogled-chromium ];
|
|
|
|
|
|
|
|
fonts = {
|
2023-07-27 09:05:23 +00:00
|
|
|
enableDefaultPackages = false;
|
2023-06-27 04:54:38 +00:00
|
|
|
|
2023-07-27 09:05:23 +00:00
|
|
|
packages = with inputs.stable.legacyPackages.${system}; [
|
2023-06-27 04:54:38 +00:00
|
|
|
dejavu_fonts
|
|
|
|
nerdfonts
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd = {
|
|
|
|
# kde polkit agent
|
|
|
|
user.services.polkit-agent = {
|
|
|
|
wants = [ "graphical-session.target" ];
|
|
|
|
after = [ "graphical-session.target" ];
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 1;
|
|
|
|
TimeoutStopSec = 10;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.variables = {
|
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "gnome3";
|
|
|
|
};
|
|
|
|
kdeconnect.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = config.main-user;
|
|
|
|
dataDir = "/home/${config.main-user}/.syncthing";
|
|
|
|
configDir = "/home/${config.main-user}/.config/syncthing";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-27 05:16:05 +00:00
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [
|
|
|
|
# syncthing TCP
|
|
|
|
22000
|
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
|
|
|
# syncthing QUIC
|
|
|
|
22000
|
|
|
|
# syncthing discovery
|
|
|
|
21027
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-06-26 01:15:34 +00:00
|
|
|
home-manager.users.${config.main-user} = homeInputs: let
|
|
|
|
homeConfig = homeInputs.config;
|
|
|
|
in {
|
2023-06-26 01:29:27 +00:00
|
|
|
imports = [
|
2023-06-27 23:24:04 +00:00
|
|
|
./modules/fcitx5
|
2023-06-26 01:29:27 +00:00
|
|
|
./modules/wofi
|
2023-06-26 03:29:03 +00:00
|
|
|
./modules/dolphin
|
2023-06-27 04:16:43 +00:00
|
|
|
./modules/firefox
|
2023-06-27 23:57:01 +00:00
|
|
|
./modules/element.nix
|
2023-06-28 06:46:48 +00:00
|
|
|
./dev-support.nix
|
2023-06-26 01:29:27 +00:00
|
|
|
];
|
|
|
|
|
2023-06-21 06:47:58 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
ark
|
|
|
|
kwrite
|
|
|
|
krita
|
|
|
|
gimp
|
|
|
|
vlc
|
|
|
|
mpv
|
|
|
|
gpicview
|
|
|
|
filelight
|
|
|
|
cantata
|
|
|
|
logseq
|
2023-06-26 01:15:34 +00:00
|
|
|
bitwarden
|
|
|
|
lxqt.pavucontrol-qt
|
|
|
|
helvum
|
|
|
|
htop
|
|
|
|
btop
|
|
|
|
speedcrunch
|
2023-06-27 22:52:00 +00:00
|
|
|
libreoffice
|
2023-06-28 07:30:55 +00:00
|
|
|
nnn
|
|
|
|
ripgrep
|
2023-06-28 08:39:01 +00:00
|
|
|
qbittorrent
|
2023-07-14 08:00:54 +00:00
|
|
|
signal-desktop
|
2023-08-30 03:35:04 +00:00
|
|
|
anki-bin
|
2023-06-21 06:47:58 +00:00
|
|
|
|
2023-06-26 01:15:34 +00:00
|
|
|
libsForQt5.kwallet
|
|
|
|
libsForQt5.kwalletmanager
|
|
|
|
distrobox
|
|
|
|
xdg-utils
|
2023-06-28 08:39:01 +00:00
|
|
|
light
|
2023-06-21 06:47:58 +00:00
|
|
|
|
|
|
|
unrar # used by ark
|
|
|
|
];
|
|
|
|
|
2023-06-22 09:28:35 +00:00
|
|
|
programs = {
|
|
|
|
alacritty = import ./config/alacritty.nix;
|
|
|
|
};
|
|
|
|
|
2023-06-21 06:47:58 +00:00
|
|
|
programs = {
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-06-26 01:15:34 +00:00
|
|
|
|
|
|
|
services = {
|
|
|
|
kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "${homeConfig.home.homeDirectory}/Music";
|
|
|
|
network.startWhenNeeded = true;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "Pipewire"
|
|
|
|
}
|
|
|
|
|
|
|
|
replaygain "track"
|
|
|
|
replaygain_limit "no"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 06:47:58 +00:00
|
|
|
};
|
|
|
|
}
|