hm: fullDesktop -> devTools

This commit is contained in:
Motiejus Jakštys 2024-02-04 22:05:44 +02:00
parent 2e5382a6e4
commit a186d68041
5 changed files with 16 additions and 43 deletions

View File

@ -310,7 +310,7 @@
extraSpecialArgs = { extraSpecialArgs = {
stateVersion = "23.05"; stateVersion = "23.05";
email = "motiejusja@wix.com"; email = "motiejusja@wix.com";
fullDesktop = true; devTools = true;
hmOnly = true; hmOnly = true;
}; };
}; };

View File

@ -64,7 +64,7 @@ in {
zfs.enable = true; zfs.enable = true;
users = { users = {
enable = true; enable = true;
fullDesktop = true; devTools = true;
passwd = { passwd = {
root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path; root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path;
motiejus.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path; motiejus.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path;

View File

@ -2,6 +2,7 @@
self, self,
lib, lib,
pkgs, pkgs,
config,
modulesPath, modulesPath,
... ...
}: { }: {
@ -12,19 +13,14 @@
]; ];
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.users.nixos = { home-manager.users.nixos = {pkgs, ...}:
#config,
pkgs,
...
}:
lib.mkMerge [ lib.mkMerge [
(import ../../shared/home/default.nix { (import ../../shared/home/default.nix {
inherit lib; inherit lib;
inherit pkgs; inherit pkgs;
#inherit (config.mj) stateVersion; inherit (config.mj) stateVersion;
stateVersion = "23.11";
username = "nixos"; username = "nixos";
fullDesktop = true; devTools = true;
hmOnly = false; hmOnly = false;
email = "motiejus@jakstys.lt"; email = "motiejus@jakstys.lt";
}) })
@ -62,7 +58,6 @@
services = { services = {
pcscd.enable = true; pcscd.enable = true;
udev.packages = [pkgs.yubikey-personalization];
getty.autologinUser = "nixos"; getty.autologinUser = "nixos";
xserver = { xserver = {
enable = true; enable = true;
@ -104,30 +99,6 @@
}; };
}; };
# from yubikey-guide
environment.systemPackages = with pkgs; [
paperkey
pgpdump
parted
cryptsetup
yubikey-manager
yubikey-manager-qt
yubikey-personalization
yubikey-personalization-gui
yubico-piv-tool
yubioath-flutter
ent
haskellPackages.hopenpgp-tools
diceware
pwgen
cfssl
pcsctools
];
networking = { networking = {
hostName = "vm"; hostName = "vm";
domain = "example.org"; domain = "example.org";

View File

@ -8,7 +8,7 @@
in { in {
options.mj.base.users = with lib.types; { options.mj.base.users = with lib.types; {
enable = lib.mkEnableOption "enable motiejus and root"; enable = lib.mkEnableOption "enable motiejus and root";
fullDesktop = lib.mkOption { devTools = lib.mkOption {
type = bool; type = bool;
default = false; default = false;
}; };
@ -66,7 +66,7 @@ in {
inherit lib; inherit lib;
inherit pkgs; inherit pkgs;
inherit (config.mj) stateVersion; inherit (config.mj) stateVersion;
inherit (config.mj.base.users) fullDesktop; inherit (config.mj.base.users) devTools;
hmOnly = false; hmOnly = false;
email = "motiejus@jakstys.lt"; email = "motiejus@jakstys.lt";
}) })

View File

@ -3,7 +3,7 @@
pkgs, pkgs,
stateVersion, stateVersion,
email, email,
fullDesktop, devTools,
hmOnly, hmOnly,
username ? "motiejus", username ? "motiejus",
... ...
@ -61,7 +61,9 @@
nativeBuildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
mv $out/bin/${execName} $out/bin/.${execName}-mkWrapped-original mv $out/bin/${execName} $out/bin/.${execName}-mkWrapped-original
makeWrapper ${wrap}/bin/${wrap.name} $out/bin/${execName} --add-flags $out/bin/.${execName}-mkWrapped-original makeWrapper \
${wrap}/bin/${wrap.name} $out/bin/${execName} \
--add-flags $out/bin/.${execName}-mkWrapped-original
''; '';
} }
// metaAttributes // metaAttributes
@ -79,7 +81,7 @@ in {
lib.mkMerge [ lib.mkMerge [
[pkgNicer] [pkgNicer]
(lib.mkIf fullDesktop [ (lib.mkIf devTools [
go go
zig zig
]) ])
@ -103,7 +105,7 @@ in {
generateCaches = true; generateCaches = true;
}; };
firefox = lib.mkIf fullDesktop { firefox = lib.mkIf devTools {
enable = true; enable = true;
# firefox doesn't need the wrapper on the personal laptop # firefox doesn't need the wrapper on the personal laptop
package = package =
@ -143,14 +145,14 @@ in {
plugins = with pkgs.vimPlugins; plugins = with pkgs.vimPlugins;
lib.mkMerge [ lib.mkMerge [
[fugitive] [fugitive]
(lib.mkIf fullDesktop [ (lib.mkIf devTools [
vim-go vim-go
zig-vim zig-vim
]) ])
]; ];
extraConfig = builtins.readFile ./vimrc; extraConfig = builtins.readFile ./vimrc;
} }
(lib.mkIf fullDesktop { (lib.mkIf devTools {
extraLuaConfig = extraLuaConfig =
builtins.readFile builtins.readFile
(pkgs.substituteAll { (pkgs.substituteAll {