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": {
|
||||
"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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue