so far nothing work :(

This commit is contained in:
2026-04-05 19:31:46 -04:00
parent 56e2a38f82
commit d29e73e6aa
3 changed files with 36 additions and 51 deletions
-3
View File
@@ -1,3 +0,0 @@
immich.env
downloadin.env
matrix.env
+17 -5
View File
@@ -4,6 +4,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
@@ -11,8 +12,13 @@
};
};
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }@inputs: {
nixosConfigurations.qmoran-laptop = nixpkgs.lib.nixosSystem {
outputs = inputs@{ flake-parts, nixos-hardware, lib, ... }:
# https://flake.parts/module-arguments.html
flake-parts.lib.mkFlake { inherit inputs; } (top@{ config, withSystem, moduleWithSystem, ... }: {
imports = [
];
flake = {
nixosConfigurations.qmoran-laptop = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nix/qlhc.nix
@@ -23,8 +29,7 @@
nixos-hardware.nixosModules.framework-11th-gen-intel
];
};
nixosConfigurations.qmoran-desktop = nixpkgs.lib.nixosSystem {
nixosConfigurations.qmoran-desktop = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nix/qdhc.nix
@@ -35,7 +40,14 @@
./nix/jf-server.nix
];
};
};
systems = [
"x86_64-linux"
];
perSystem = { config, pkgs, ... }: {
};
});
}
-24
View File
@@ -1,24 +0,0 @@
{ pkgs, lib, ... }:
let
mountPoint = "/mnt/mega";
remoteName = "data";
bucketName = "enc";
configFile = "/etc/rclone.conf";
in
{
environment.systemPackages = with pkgs;[
rclone
];
systemd.mounts = lib.singleton {
where = mountPoint;
what = "${remoteName}:${bucketName}";
type = "rclone";
# I think we need to be able to set a timeout here but nix is too new
options = "_netdev,allow-other,vfs-cache-mode=full,vfs-read-chunk-size=512M,vfs-read-chunk-size-limit=1G,vfs-write-back=48h,vfs-cache-max-age=3h,config=${configFile},vvv,daemon-wait=0";
};
#systemd.automounts = lib.singleton {
# where = mountPoint;
# wantedBy = [ "multi-user.target" ];
#};
}