Merge pull request #18 from tomasriveral/laptop

Laptop
This commit is contained in:
2026-06-06 19:06:22 +02:00
committed by GitHub
6 changed files with 37 additions and 151 deletions
+3 -2
View File
@@ -7,7 +7,7 @@
nixos-grub-themes.url = "github:jeslie0/nixos-grub-themes"; nixos-grub-themes.url = "github:jeslie0/nixos-grub-themes";
# This one is only used when testing some packaging. You must change the path to the correct nixpkgs clone # This one is only used when testing some packaging. You must change the path to the correct nixpkgs clone
nixpkgs-local.url = "path:/home/tomasr/devel/fugit2-gpgme"; #nixpkgs-local.url = "path:/home/tomasr/devel/fugit2-gpgme";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-26.05"; url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -62,7 +62,8 @@
}; };
pkgs = mkPkgs inputs.nixpkgs; pkgs = mkPkgs inputs.nixpkgs;
pkgs-unstable = mkPkgs inputs.nixpkgs-unstable; pkgs-unstable = mkPkgs inputs.nixpkgs-unstable;
pkgs-local = mkPkgs inputs.nixpkgs-local; pkgs-local = mkPkgs inputs.nixpkgs-unstable;
#pkgs-local = mkPkgs inputs.nixpkgs-local;
in { in {
inherit pkgs pkgs-unstable pkgs-local; inherit pkgs pkgs-unstable pkgs-local;
}; };
+1 -1
View File
@@ -1,5 +1,5 @@
_: { _: {
flake.homeModules.neovim = {pkgs-unstable, pkgs-local,...}: { flake.homeModules.neovim = {pkgs-unstable, ...}: {
programs.neovim = { programs.neovim = {
withRuby = false; withRuby = false;
withPython3 = false; withPython3 = false;
+2 -31
View File
@@ -24,16 +24,9 @@ _: {
}; };
}; };
luks = { root = {
size = "100%"; size = "100%";
content = {
type = "luks";
name = "cryptroot";
# You will type this password at boot.
settings.allowDiscards = true;
content = { content = {
type = "btrfs"; type = "btrfs";
@@ -67,14 +60,6 @@ _: {
"@snapshots" = { "@snapshots" = {
mountpoint = "/.snapshots"; mountpoint = "/.snapshots";
}; };
# Keyfile storage.
# This subvolume will contain the key used
# to unlock the HDD automatically.
"@keys" = {
mountpoint = "/keys";
};
};
}; };
}; };
}; };
@@ -92,22 +77,9 @@ _: {
type = "gpt"; type = "gpt";
partitions = { partitions = {
luks = { data = {
size = "100%"; size = "100%";
content = {
type = "luks";
name = "cryptdata";
# IMPORTANT:
# This keyfile will be created after installation.
# The SSD unlocks first.
# Then this keyfile unlocks the HDD automatically.
settings = {
keyFile = "/keys/hdd.key";
};
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = "ext4";
@@ -120,5 +92,4 @@ _: {
}; };
}; };
}; };
};
} }
+2 -2
View File
@@ -7,7 +7,7 @@
flake.nixosConfigurations.desktop = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.desktop = inputs.nixpkgs.lib.nixosSystem {
#system = "x86_64-linux"; #system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit (self) pkgs-unstable pkgs-local; inherit (self) pkgs-unstable;
}; };
modules = with self.nixosModules; [ modules = with self.nixosModules; [
# important do not remove # important do not remove
@@ -30,7 +30,7 @@
#hardware-configuration-desktop #hardware-configuration-desktop
hyprland hyprland
IO IO
kdrive-desktop # we will setup this later #kdrive-desktop # we will setup this later
latex latex
ly ly
mullvad mullvad
-42
View File
@@ -1,42 +0,0 @@
_: {
perSystem = _: {
packages.hypr-dynamic-cursors-manual = {
lib,
mkHyprlandPlugin,
fetchFromGitHub,
nix-update-script,
}:
mkHyprlandPlugin {
pluginName = "hypr-dynamic-cursors";
version = "0-unstable-2026-05-29";
src = fetchFromGitHub {
owner = "VirtCode";
repo = "hypr-dynamic-cursors";
rev = "1de08deb7d495124ce88b342fecc7e7542d0672f";
hash = "sha256-Ck9dFUfj/zDSab16CzsGWEMNeSNDhhDOB0JWeHzVvjk=";
};
dontUseCmakeConfigure = true;
installPhase = ''
runHook preInstall
mkdir -p $out/lib
mv out/dynamic-cursors.so $out/lib/libhypr-dynamic-cursors.so
runHook postInstall
'';
passthru.updateScript = nix-update-script {extraArgs = ["--version=branch"];};
meta = {
description = "Plugin to make your Hyprland cursor more realistic";
homepage = "https://github.com/VirtCode/hypr-dynamic-cursors";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [donovanglover];
platforms = lib.platforms.linux;
};
};
};
}
@@ -1,44 +0,0 @@
_: {
perSystem = {
pkgs,
pkgs-unstable,
...
}: {
packages.sbb-tuiManuallyDerived = pkgs-unstable.buildGoModule (finalAttrs: {
pname = "sbb-tui";
version = "1.14.2";
__structuredAttrs = true;
src = pkgs.fetchFromGitHub {
owner = "Necrom4";
repo = "sbb-tui";
tag = "v${finalAttrs.version}";
hash = pkgs.lib.fakeHash;
};
vendorHash = "sha256-K4DOu3rfSlKAa5JNKCzWWpnWZlXXxtN5Po7p1Spqe1w=";
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
allowGoReference = true;
doCheck = true;
nativeCheckInputs = [pkgs.versionCheckHook];
passthru.updateScript = pkgs.nix-update-script {};
meta = {
description = "TUI client for Switzerland's public transport timetables, inspired by SBB/CFF/FFS app";
homepage = "https://github.com/Necrom4/sbb-tui";
license = pkgs.lib.licenses.mit;
platforms = pkgs.lib.platforms.unix;
maintainers = with pkgs.lib.maintainers; [tomasrivera];
mainProgram = "sbb-tui";
};
});
};
}