Compare commits

...

4 Commits

Author SHA1 Message Date
Sravan Balaji
ff832c6e0a Move kdeconnect to system and install qbittorrent with home manager 2024-04-01 20:43:21 -04:00
Sravan Balaji
d0e27148c7 Update flake.lock 2024-04-01 20:24:19 -04:00
Sravan Balaji
902408e764 Add geoclue service to fix redshift missing location 2024-04-01 20:23:25 -04:00
Sravan Balaji
33a657d209 Update flake.lock and fix samba syntax errors 2024-04-01 20:15:22 -04:00
7 changed files with 19 additions and 17 deletions

12
flake.lock generated
View File

@@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1711588700,
"narHash": "sha256-vBB5HoQVnA6c/UrDOhLXKAahEwSRccw2YXYHxD7qoi4=",
"lastModified": 1711934712,
"narHash": "sha256-sBDe+QmX/QohlnKeSEzrftcXyZL5FY09OMjZ59Rpyy4=",
"owner": "nix-community",
"repo": "disko",
"rev": "502241afa3de2a24865ddcbe4c122f4546e32092",
"rev": "611c9ea53250f7bb22286b3d26872280a0e608f9",
"type": "github"
},
"original": {
@@ -224,11 +224,11 @@
]
},
"locked": {
"lastModified": 1711868868,
"narHash": "sha256-QpZanlbVu6Gb2K96u3vgu0F2BvZD74+fOsIFWcYEXoY=",
"lastModified": 1712016346,
"narHash": "sha256-O2nO7pD+krq+4HgkLB4VThRtAucIPfXDs/jJqCGlK1w=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "30f2ec39519f4f5a8a96af808c439e730c15aeab",
"rev": "4be0464472675212654dedf3e021bd5f1d58b92f",
"type": "github"
},
"original": {

View File

@@ -51,6 +51,10 @@
package = pkgs.redshift;
executable = "/bin/redshift-gtk";
};
services.geoclue2 = {
enable = true;
};
location.provider = "geoclue2";
# File Manager
programs.thunar = {

View File

@@ -10,5 +10,6 @@
./user-shell.nix
./samba.nix
./cloud.nix
./phone.nix
];
}

View File

@@ -9,16 +9,14 @@
fileSystems."/mnt/fileserver" = {
device = "//192.168.12.5/fileserver";
fsType = "cifs";
options = let
options =
let
# this line prevents hanging on network split
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
in [
"${automount_opts},
credentials=/etc/nixos/smb-secrets,
${config.users.users.${userSettings.username}.uid},
gid=${config.users.groups.${userSettings.username}.gid}"
];
username = userSettings.username;
uid = config.users.users.${username}.uid;
gid = config.users.groups.${username}.gid;
in [ "${automount_opts},credentials=/etc/nixos/smb-secrets,uid=${toString uid},gid=${toString gid}" ];
# Make sure to create `/etc/nixos/smb-secrets` with following content
# where domain can be optional
# username=<USERNAME>

View File

@@ -9,7 +9,6 @@
./passwords.nix
./xdg.nix
./screenshot.nix
./phone.nix
./downloads.nix
];
}

View File

@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
qbittorrent-qt5
];
]);
}