Compare commits
9 Commits
aef1677b9a
...
590eb0286e
Author | SHA1 | Date |
---|---|---|
coolneng | 590eb0286e | |
coolneng | 8b22d91e5b | |
coolneng | f9e4d45c21 | |
coolneng | 7083b288f5 | |
coolneng | 220b862eb3 | |
coolneng | 65267340b4 | |
coolneng | a23c940deb | |
coolneng | 3ef99fee1d | |
coolneng | ff58df1fa2 |
|
@ -38,11 +38,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1667050928,
|
||||
"narHash": "sha256-xOn0ZgjImIyeecEsrjxuvlW7IW5genTwvvnDQRFncB8=",
|
||||
"lastModified": 1667811565,
|
||||
"narHash": "sha256-HYml7RdQPQ7X13VNe2CoDMqmifsXbt4ACTKxHRKQE3Q=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "fdebb81f45a1ba2c4afca5fd9f526e1653ad0949",
|
||||
"rev": "667e5581d16745bcda791300ae7e2d73f49fff25",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -84,41 +84,17 @@
|
|||
|
||||
# Automount external storage
|
||||
systemd.mounts = [
|
||||
# USB
|
||||
{
|
||||
what = "/dev/sda1";
|
||||
where = "/usb";
|
||||
mountConfig = { TimeoutSec = "5"; };
|
||||
}
|
||||
# SD card
|
||||
{
|
||||
what = "/dev/mmcblk0p1";
|
||||
where = "/sdcard";
|
||||
mountConfig = { TimeoutSec = "5"; };
|
||||
}
|
||||
# UGent Samba
|
||||
{
|
||||
what = "//files.ugent.be/akasroua/home";
|
||||
type = "cifs";
|
||||
where = "/ugent";
|
||||
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"; };
|
||||
}
|
||||
];
|
||||
systemd.automounts = [
|
||||
# USB
|
||||
{
|
||||
where = "/usb";
|
||||
automountConfig = { TimeoutIdleSec = "5"; };
|
||||
wantedBy = [ "default.target" ];
|
||||
}
|
||||
# SD card
|
||||
{
|
||||
where = "/sdcard";
|
||||
automountConfig = { TimeoutIdleSec = "5"; };
|
||||
wantedBy = [ "default.target" ];
|
||||
}
|
||||
# UGent Samba
|
||||
{
|
||||
where = "/ugent";
|
||||
|
|
|
@ -2,17 +2,7 @@
|
|||
|
||||
with pkgs;
|
||||
|
||||
let
|
||||
waybar-audio-patch = waybar.overrideAttrs (old: rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "Alexays";
|
||||
repo = "Waybar";
|
||||
rev = "ebdf575d45c0e4f8c6f6ce484fbbf5375ed8dbba";
|
||||
sha256 = "WTdy9zGhidk56CjmSuFDigfa64O9ZNd5GpfpCVrL8i0=";
|
||||
};
|
||||
});
|
||||
|
||||
in {
|
||||
{
|
||||
# Display manager
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager = {
|
||||
|
@ -36,7 +26,7 @@ in {
|
|||
swayidle
|
||||
swaybg
|
||||
rofi-wayland
|
||||
waybar-audio-patch
|
||||
waybar
|
||||
clipman
|
||||
wl-clipboard
|
||||
grim
|
||||
|
@ -78,9 +68,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# Bar
|
||||
programs.waybar.enable = true;
|
||||
|
||||
# GPG agent
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
|
@ -105,4 +92,7 @@ in {
|
|||
enable = true;
|
||||
wlr.enable = true;
|
||||
};
|
||||
|
||||
# Allow dbus to communicate with storage devices
|
||||
services.udisks2.enable = true;
|
||||
}
|
||||
|
|
|
@ -23,19 +23,14 @@
|
|||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/sdcard" =
|
||||
{ device = "systemd-1";
|
||||
fsType = "autofs";
|
||||
};
|
||||
|
||||
fileSystems."/ugent" =
|
||||
{ device = "systemd-1";
|
||||
fsType = "autofs";
|
||||
};
|
||||
|
||||
fileSystems."/usb" =
|
||||
{ device = "systemd-1";
|
||||
fsType = "autofs";
|
||||
fileSystems."/tmp" =
|
||||
{ device = "syscea/ephemeral/tmp";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home/coolneng" =
|
||||
|
@ -43,11 +38,6 @@
|
|||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/tmp" =
|
||||
{ device = "syscea/ephemeral/tmp";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home/coolneng/Downloads" =
|
||||
{ device = "syscea/stateful/home/downloads";
|
||||
fsType = "zfs";
|
||||
|
|
Loading…
Reference in New Issue