so far nothing work :(
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
immich.env
|
|
||||||
downloadin.env
|
|
||||||
matrix.env
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-23.05";
|
url = "github:nix-community/home-manager/release-23.05";
|
||||||
@@ -11,31 +12,42 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }@inputs: {
|
outputs = inputs@{ flake-parts, nixos-hardware, lib, ... }:
|
||||||
nixosConfigurations.qmoran-laptop = nixpkgs.lib.nixosSystem {
|
# https://flake.parts/module-arguments.html
|
||||||
system = "x86_64-linux";
|
flake-parts.lib.mkFlake { inherit inputs; } (top@{ config, withSystem, moduleWithSystem, ... }: {
|
||||||
modules = [
|
imports = [
|
||||||
./nix/qlhc.nix
|
|
||||||
./nix/common.nix
|
|
||||||
./nix/user-quin.nix
|
|
||||||
./nix/gui1.nix
|
|
||||||
./nix/mega.nix
|
|
||||||
nixos-hardware.nixosModules.framework-11th-gen-intel
|
|
||||||
];
|
];
|
||||||
};
|
flake = {
|
||||||
|
nixosConfigurations.qmoran-laptop = lib.nixosSystem {
|
||||||
nixosConfigurations.qmoran-desktop = nixpkgs.lib.nixosSystem {
|
system = "x86_64-linux";
|
||||||
system = "x86_64-linux";
|
modules = [
|
||||||
modules = [
|
./nix/qlhc.nix
|
||||||
./nix/qdhc.nix
|
./nix/common.nix
|
||||||
./nix/common.nix
|
./nix/user-quin.nix
|
||||||
./nix/user-quin.nix
|
./nix/gui1.nix
|
||||||
./nix/gui1.nix
|
./nix/mega.nix
|
||||||
./nix/mega.nix
|
nixos-hardware.nixosModules.framework-11th-gen-intel
|
||||||
./nix/jf-server.nix
|
];
|
||||||
|
};
|
||||||
|
nixosConfigurations.qmoran-desktop = lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
./nix/qdhc.nix
|
||||||
|
./nix/common.nix
|
||||||
|
./nix/user-quin.nix
|
||||||
|
./nix/gui1.nix
|
||||||
|
./nix/mega.nix
|
||||||
|
./nix/jf-server.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
};
|
perSystem = { config, pkgs, ... }: {
|
||||||
|
};
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-24
@@ -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" ];
|
|
||||||
#};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user