Squash merge playground into main

This commit is contained in:
2026-03-13 13:19:59 -04:00
parent 25b5a0ec64
commit 18cef3676c
4 changed files with 41 additions and 33 deletions
+16 -4
View File
@@ -27,10 +27,22 @@
networking.networkmanager.enable = true;
networking.hostName = "qmoran-laptop";
imports = [
./hardware-configuration.nix
./users.nix
];
# My user for now
users.users.qmoran = {
isNormalUser = true;
description = "quin";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
gh
btop
kdePackages.kate
signal-desktop
lazygit
element-desktop
vscodium
vivaldi
];
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
+1 -8
View File
@@ -2,27 +2,20 @@
description = "Quins NixOS flake!";
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-unstable";
home-manager = {
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";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
# Please replace my-nixos with your hostname
nixosConfigurations.qmoran-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hardware-configuration.nix
./configuration.nix
home-manager.nixosModules.home-manager
];
};
};
+24
View File
@@ -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" ];
#};
}
-21
View File
@@ -1,21 +0,0 @@
{ config, pkgs, ... }:
{
users.users.qmoran = {
isNormalUser = true;
description = "quin";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
gh
btop
kdePackages.kate
signal-desktop
lazygit
element-desktop
vscodium
vivaldi
];
};
}