Compare commits

...

9 Commits

Author SHA1 Message Date
coolneng 590eb0286e
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3bacde6273b09a21a8ccfba15586fb165078fb62' (2022-11-05)
  → 'github:NixOS/nixpkgs/667e5581d16745bcda791300ae7e2d73f49fff25' (2022-11-07)
2022-11-10 10:37:44 +01:00
coolneng 8b22d91e5b
Mount samba share without inode support 2022-11-10 10:37:44 +01:00
coolneng f9e4d45c21
Revert "Replace waybar with pulseaudio sink ignore fork"
This reverts commit e9be8dfe42.
2022-11-10 10:37:44 +01:00
coolneng 7083b288f5
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a2a777538d971c6b01c6e54af89ddd6567c055e8' (2022-11-03)
  → 'github:NixOS/nixpkgs/3bacde6273b09a21a8ccfba15586fb165078fb62' (2022-11-05)
2022-11-10 10:37:44 +01:00
coolneng 220b862eb3
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d40fea9aeb8840fea0d377baa4b38e39b9582458' (2022-10-31)
  → 'github:NixOS/nixpkgs/a2a777538d971c6b01c6e54af89ddd6567c055e8' (2022-11-03)
2022-11-10 10:37:44 +01:00
coolneng 65267340b4
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/412b9917cea092f3d39f9cd5dead4effd5bc4053' (2022-10-30)
  → 'github:NixOS/nixpkgs/d40fea9aeb8840fea0d377baa4b38e39b9582458' (2022-10-31)
2022-11-10 10:37:44 +01:00
coolneng a23c940deb
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/fdebb81f45a1ba2c4afca5fd9f526e1653ad0949' (2022-10-29)
  → 'github:NixOS/nixpkgs/412b9917cea092f3d39f9cd5dead4effd5bc4053' (2022-10-30)
2022-11-10 10:37:44 +01:00
coolneng 3ef99fee1d
Allow dbus to communicate with storage devices 2022-11-10 10:37:43 +01:00
coolneng ff58df1fa2
Stop automounting USB and SD cards 2022-11-10 10:37:43 +01:00
4 changed files with 12 additions and 56 deletions

View File

@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1667050928, "lastModified": 1667811565,
"narHash": "sha256-xOn0ZgjImIyeecEsrjxuvlW7IW5genTwvvnDQRFncB8=", "narHash": "sha256-HYml7RdQPQ7X13VNe2CoDMqmifsXbt4ACTKxHRKQE3Q=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fdebb81f45a1ba2c4afca5fd9f526e1653ad0949", "rev": "667e5581d16745bcda791300ae7e2d73f49fff25",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -84,41 +84,17 @@
# Automount external storage # Automount external storage
systemd.mounts = [ systemd.mounts = [
# USB
{
what = "/dev/sda1";
where = "/usb";
mountConfig = { TimeoutSec = "5"; };
}
# SD card
{
what = "/dev/mmcblk0p1";
where = "/sdcard";
mountConfig = { TimeoutSec = "5"; };
}
# UGent Samba # UGent Samba
{ {
what = "//files.ugent.be/akasroua/home"; what = "//files.ugent.be/akasroua/home";
type = "cifs"; type = "cifs";
where = "/ugent"; where = "/ugent";
options = options =
"credentials=${config.age.secrets.samba-ugent.path},noperm,vers=3.11,sec=ntlmv2i"; "credentials=${config.age.secrets.samba-ugent.path},noperm,vers=3.11,sec=ntlmv2i,noserverino";
mountConfig = { TimeoutSec = "5"; }; mountConfig = { TimeoutSec = "5"; };
} }
]; ];
systemd.automounts = [ systemd.automounts = [
# USB
{
where = "/usb";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# SD card
{
where = "/sdcard";
automountConfig = { TimeoutIdleSec = "5"; };
wantedBy = [ "default.target" ];
}
# UGent Samba # UGent Samba
{ {
where = "/ugent"; where = "/ugent";

View File

@ -2,17 +2,7 @@
with pkgs; with pkgs;
let {
waybar-audio-patch = waybar.overrideAttrs (old: rec {
src = fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = "ebdf575d45c0e4f8c6f6ce484fbbf5375ed8dbba";
sha256 = "WTdy9zGhidk56CjmSuFDigfa64O9ZNd5GpfpCVrL8i0=";
};
});
in {
# Display manager # Display manager
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.displayManager = { services.xserver.displayManager = {
@ -36,7 +26,7 @@ in {
swayidle swayidle
swaybg swaybg
rofi-wayland rofi-wayland
waybar-audio-patch waybar
clipman clipman
wl-clipboard wl-clipboard
grim grim
@ -78,9 +68,6 @@ in {
}; };
}; };
# Bar
programs.waybar.enable = true;
# GPG agent # GPG agent
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
@ -105,4 +92,7 @@ in {
enable = true; enable = true;
wlr.enable = true; wlr.enable = true;
}; };
# Allow dbus to communicate with storage devices
services.udisks2.enable = true;
} }

View File

@ -23,19 +23,14 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/sdcard" =
{ device = "systemd-1";
fsType = "autofs";
};
fileSystems."/ugent" = fileSystems."/ugent" =
{ device = "systemd-1"; { device = "systemd-1";
fsType = "autofs"; fsType = "autofs";
}; };
fileSystems."/usb" = fileSystems."/tmp" =
{ device = "systemd-1"; { device = "syscea/ephemeral/tmp";
fsType = "autofs"; fsType = "zfs";
}; };
fileSystems."/home/coolneng" = fileSystems."/home/coolneng" =
@ -43,11 +38,6 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/tmp" =
{ device = "syscea/ephemeral/tmp";
fsType = "zfs";
};
fileSystems."/home/coolneng/Downloads" = fileSystems."/home/coolneng/Downloads" =
{ device = "syscea/stateful/home/downloads"; { device = "syscea/stateful/home/downloads";
fsType = "zfs"; fsType = "zfs";