mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Refactor nh and just
This commit is contained in:
parent
32dc565a35
commit
f4a6faf1d3
8 changed files with 13 additions and 20 deletions
|
|
@ -52,7 +52,10 @@
|
|||
vimAlias = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.git ];
|
||||
environment.systemPackages = [
|
||||
pkgs.git
|
||||
pkgs.just
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
sops.enable = true;
|
||||
printing.enable = true;
|
||||
syncthing.enable = true;
|
||||
nix-helper.enable = true;
|
||||
auto-gc.enable = true;
|
||||
geoclue.enable = true;
|
||||
tailscale = {
|
||||
|
|
@ -33,5 +32,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.auto-cpufreq.enable = true;
|
||||
programs.nh.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@ boot.initrd.kernelModules = [ "usb_storage" ];
|
|||
zramSwap.enable = true;
|
||||
services.fstrim.enable = true;
|
||||
services.fwupd.enable = true;
|
||||
services.auto-cpufreq.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
sops.enable = true;
|
||||
printing.enable = true;
|
||||
syncthing.enable = true;
|
||||
nix-helper.enable = true;
|
||||
auto-gc.enable = true;
|
||||
geoclue.enable = true;
|
||||
tailscale = {
|
||||
|
|
@ -30,5 +29,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.nh.enable = true;
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
|
|
|
|||
6
justfile
6
justfile
|
|
@ -6,13 +6,13 @@ default:
|
|||
just --list --unsorted
|
||||
|
||||
switch:
|
||||
{{ rebuild }} switch
|
||||
{{ rebuild }} switch .
|
||||
|
||||
test:
|
||||
{{ rebuild }} test
|
||||
{{ rebuild }} test .
|
||||
|
||||
boot:
|
||||
{{ rebuild }} boot
|
||||
{{ rebuild }} boot .
|
||||
|
||||
reboot: boot
|
||||
reboot
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@
|
|||
bind = SUPER, D, togglespecialworkspace, chat
|
||||
|
||||
# Flake workspace
|
||||
workspace = special:flake, border:false, gapsout:30, on-created-empty:kitty --directory $FLAKE --override background_opacity=0.7
|
||||
workspace = special:flake, border:false, gapsout:30, on-created-empty:kitty --directory ~/Projects/nixos/my-config --override background_opacity=0.7
|
||||
windowrulev2 = noblur, class:(kitty), onworkspace:special:flake
|
||||
bind = SUPER, Q, togglespecialworkspace, flake
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.nix-helper.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.nix-helper.enable {
|
||||
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
||||
programs.nh.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
home.packages = [
|
||||
pkgs.fastfetch
|
||||
pkgs.just
|
||||
|
||||
(wrappers.kitty { inherit (config.myConfig) theme; })
|
||||
wrappers.firefox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue