2024-12-09 15:25:01 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
username,
|
|
|
|
...
|
|
|
|
}:
|
2024-07-30 15:06:34 +01:00
|
|
|
{
|
2024-11-08 06:33:25 +00:00
|
|
|
imports = [
|
|
|
|
./desktop.nix
|
|
|
|
./work.nix
|
|
|
|
];
|
2024-12-09 15:25:01 +00:00
|
|
|
home-manager.users.${username} =
|
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
home.stateVersion = "23.05";
|
|
|
|
wayland.windowManager.hyprland.settings.monitor = [
|
|
|
|
"desc:Dell Inc. DELL P3223QE CCG8YN3,preferred,auto,1.5"
|
|
|
|
];
|
2024-12-11 11:05:26 +00:00
|
|
|
systemd.user.services.mount-onedrive =
|
2024-12-09 15:25:01 +00:00
|
|
|
let
|
2024-12-11 09:29:49 +00:00
|
|
|
target = "${config.home.homeDirectory}/OneDrive";
|
2024-12-09 15:25:01 +00:00
|
|
|
in
|
|
|
|
{
|
2024-12-11 09:29:49 +00:00
|
|
|
Unit = {
|
|
|
|
Description = "Mount OneDrive to local directory";
|
|
|
|
After = [
|
|
|
|
"network-online.target"
|
|
|
|
"hyprland-session.target"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
Type = "notify";
|
|
|
|
ExecStartPre = "/usr/bin/env mkdir -p ${target}";
|
|
|
|
ExecStart = "${pkgs.rclone}/bin/rclone --config=${config.xdg.configHome}/rclone/rclone.conf --vfs-cache-mode writes --ignore-checksum mount \"OneDrive:\" ${target}";
|
|
|
|
ExecStop = "/bin/fusermount -u ${target}";
|
|
|
|
};
|
|
|
|
Install.WantedBy = [ "default.target" ];
|
2024-12-09 15:25:01 +00:00
|
|
|
};
|
|
|
|
};
|
2024-05-11 15:41:19 +01:00
|
|
|
boot = {
|
|
|
|
loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
initrd = {
|
2024-07-30 15:06:34 +01:00
|
|
|
secrets = {
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
};
|
2024-05-11 15:41:19 +01:00
|
|
|
luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb" = {
|
|
|
|
device = "/dev/disk/by-uuid/47d34268-5100-4eba-b34d-220f4239c1cb";
|
|
|
|
keyFile = "/crypto_keyfile.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-17 06:07:29 +01:00
|
|
|
system.stateVersion = "23.05";
|
2024-05-11 15:41:19 +01:00
|
|
|
environment = {
|
|
|
|
etc."ppp/options".text = ''
|
|
|
|
ipcp-accept-remote
|
|
|
|
'';
|
2024-07-30 15:06:34 +01:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
openfortivpn
|
|
|
|
samba
|
|
|
|
];
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
|
|
|
}
|