Compare commits
9 Commits
590eb0286e
...
aef1677b9a
Author | SHA1 | Date |
---|---|---|
coolneng | aef1677b9a | |
coolneng | 539a37d159 | |
coolneng | 035dcb8466 | |
coolneng | c0c77c2c96 | |
coolneng | c89c1d69b6 | |
coolneng | cad9dfa8d7 | |
coolneng | b96d37cfc2 | |
coolneng | 49f2d69267 | |
coolneng | b618272097 |
|
@ -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": {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue