hm: fullDesktop -> devTools
This commit is contained in:
parent
2e5382a6e4
commit
a186d68041
|
@ -310,7 +310,7 @@
|
|||
extraSpecialArgs = {
|
||||
stateVersion = "23.05";
|
||||
email = "motiejusja@wix.com";
|
||||
fullDesktop = true;
|
||||
devTools = true;
|
||||
hmOnly = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@ in {
|
|||
zfs.enable = true;
|
||||
users = {
|
||||
enable = true;
|
||||
fullDesktop = true;
|
||||
devTools = true;
|
||||
passwd = {
|
||||
root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path;
|
||||
motiejus.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
self,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
|
@ -12,19 +13,14 @@
|
|||
];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.nixos = {
|
||||
#config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
home-manager.users.nixos = {pkgs, ...}:
|
||||
lib.mkMerge [
|
||||
(import ../../shared/home/default.nix {
|
||||
inherit lib;
|
||||
inherit pkgs;
|
||||
#inherit (config.mj) stateVersion;
|
||||
stateVersion = "23.11";
|
||||
inherit (config.mj) stateVersion;
|
||||
username = "nixos";
|
||||
fullDesktop = true;
|
||||
devTools = true;
|
||||
hmOnly = false;
|
||||
email = "motiejus@jakstys.lt";
|
||||
})
|
||||
|
@ -62,7 +58,6 @@
|
|||
|
||||
services = {
|
||||
pcscd.enable = true;
|
||||
udev.packages = [pkgs.yubikey-personalization];
|
||||
getty.autologinUser = "nixos";
|
||||
xserver = {
|
||||
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 = {
|
||||
hostName = "vm";
|
||||
domain = "example.org";
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
in {
|
||||
options.mj.base.users = with lib.types; {
|
||||
enable = lib.mkEnableOption "enable motiejus and root";
|
||||
fullDesktop = lib.mkOption {
|
||||
devTools = lib.mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
};
|
||||
|
@ -66,7 +66,7 @@ in {
|
|||
inherit lib;
|
||||
inherit pkgs;
|
||||
inherit (config.mj) stateVersion;
|
||||
inherit (config.mj.base.users) fullDesktop;
|
||||
inherit (config.mj.base.users) devTools;
|
||||
hmOnly = false;
|
||||
email = "motiejus@jakstys.lt";
|
||||
})
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
stateVersion,
|
||||
email,
|
||||
fullDesktop,
|
||||
devTools,
|
||||
hmOnly,
|
||||
username ? "motiejus",
|
||||
...
|
||||
|
@ -61,7 +61,9 @@
|
|||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
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
|
||||
|
@ -79,7 +81,7 @@ in {
|
|||
lib.mkMerge [
|
||||
[pkgNicer]
|
||||
|
||||
(lib.mkIf fullDesktop [
|
||||
(lib.mkIf devTools [
|
||||
go
|
||||
zig
|
||||
])
|
||||
|
@ -103,7 +105,7 @@ in {
|
|||
generateCaches = true;
|
||||
};
|
||||
|
||||
firefox = lib.mkIf fullDesktop {
|
||||
firefox = lib.mkIf devTools {
|
||||
enable = true;
|
||||
# firefox doesn't need the wrapper on the personal laptop
|
||||
package =
|
||||
|
@ -143,14 +145,14 @@ in {
|
|||
plugins = with pkgs.vimPlugins;
|
||||
lib.mkMerge [
|
||||
[fugitive]
|
||||
(lib.mkIf fullDesktop [
|
||||
(lib.mkIf devTools [
|
||||
vim-go
|
||||
zig-vim
|
||||
])
|
||||
];
|
||||
extraConfig = builtins.readFile ./vimrc;
|
||||
}
|
||||
(lib.mkIf fullDesktop {
|
||||
(lib.mkIf devTools {
|
||||
extraLuaConfig =
|
||||
builtins.readFile
|
||||
(pkgs.substituteAll {
|
||||
|
|
Loading…
Reference in New Issue