Squash merge playground into main
This commit is contained in:
+15
-3
@@ -27,10 +27,22 @@
|
|||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.hostName = "qmoran-laptop";
|
networking.hostName = "qmoran-laptop";
|
||||||
|
|
||||||
imports = [
|
# My user for now
|
||||||
./hardware-configuration.nix
|
users.users.qmoran = {
|
||||||
./users.nix
|
isNormalUser = true;
|
||||||
|
description = "quin";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
gh
|
||||||
|
btop
|
||||||
|
kdePackages.kate
|
||||||
|
signal-desktop
|
||||||
|
lazygit
|
||||||
|
element-desktop
|
||||||
|
vscodium
|
||||||
|
vivaldi
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
@@ -2,27 +2,20 @@
|
|||||||
description = "Quins NixOS flake!";
|
description = "Quins NixOS flake!";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# NixOS official package source, using the nixos-25.11 branch here
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-23.05";
|
url = "github:nix-community/home-manager/release-23.05";
|
||||||
# The `follows` keyword in inputs is used for inheritance.
|
|
||||||
# Here, `inputs.nixpkgs` of home-manager is kept consistent with
|
|
||||||
# the `inputs.nixpkgs` of the current flake,
|
|
||||||
# to avoid problems caused by different versions of nixpkgs.
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||||
# Please replace my-nixos with your hostname
|
|
||||||
nixosConfigurations.qmoran-laptop = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.qmoran-laptop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
./hardware-configuration.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
{ 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