aboutsummaryrefslogtreecommitdiff
path: root/nixos/profiles/workstation
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-25 18:59:14 +0100
committerMartin Fischer <martin@push-f.com>2025-12-26 08:03:25 +0100
commita36b384657a11acdb267bfefa9bc7719ab6ab4a0 (patch)
tree875f01397f3b93361221d220facc1d1b6931960c /nixos/profiles/workstation
parentfe82080cb6b38e3100b08308d48bd78220c9ec3c (diff)
refactor: introduce Services and Monitoring sections
Diffstat (limited to 'nixos/profiles/workstation')
-rw-r--r--nixos/profiles/workstation/graphical.nix54
1 files changed, 29 insertions, 25 deletions
diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix
index c30a24e..1cbb9de 100644
--- a/nixos/profiles/workstation/graphical.nix
+++ b/nixos/profiles/workstation/graphical.nix
@@ -1,6 +1,35 @@
{ config, pkgs, ... }:
{
+ # Services
+
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ };
+ security.rtkit.enable = true; # recommended for PipeWire
+ hardware.bluetooth.enable = true;
+
+ services.upower.enable = true;
+
+ systemd.user.services.hugo-notes = {
+ after = ["network.target"];
+
+ serviceConfig = {
+ Type = "simple";
+ WorkingDirectory = "%h/repos/notes";
+ ExecStart = "${pkgs.hugo}/bin/hugo serve --port 1313";
+ Restart = "on-failure";
+ RestartSec = "5s";
+ };
+
+ wantedBy = ["default.target"];
+ };
+
+ # Packages
+
programs.sway = {
enable = true;
extraPackages = [];
@@ -49,8 +78,6 @@
poweralertd
];
- services.upower.enable = true;
-
# This generates /etc/xdg/mimeapps.list. The XDG spec and xdg-open don't support wildcards in MIME types.
# TODO: use an xdg-open alternative that supports wildcards in MIME types and doesn't use mimeapps.list
xdg.mime.defaultApplications =
@@ -66,30 +93,7 @@
"x-scheme-handler/mailto" = "thunderbird.desktop";
};
- services.pipewire = {
- enable = true;
- alsa.enable = true;
- alsa.support32Bit = true;
- pulse.enable = true;
- };
- security.rtkit.enable = true; # recommended for PipeWire
- hardware.bluetooth.enable = true;
-
programs.thunderbird = {
enable = true;
};
-
- systemd.user.services.hugo-notes = {
- after = ["network.target"];
-
- serviceConfig = {
- Type = "simple";
- WorkingDirectory = "%h/repos/notes";
- ExecStart = "${pkgs.hugo}/bin/hugo serve --port 1313";
- Restart = "on-failure";
- RestartSec = "5s";
- };
-
- wantedBy = ["default.target"];
- };
}