Change home-manager structure
After I quit Tradebyte, I'm now only having a single user account. It makes sense to restructure the home-manager configuration.
This commit is contained in:
parent
f01b29db83
commit
1841031fbc
65 changed files with 25 additions and 81 deletions
|
|
@ -1,28 +0,0 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.jalr = {
|
||||
git = {
|
||||
user = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "name to use for git commits";
|
||||
};
|
||||
email = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "email to use for git commits";
|
||||
};
|
||||
};
|
||||
signByDefault = lib.mkEnableOption "GPG sign commits per default";
|
||||
};
|
||||
gpg.defaultKey = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "default gpg key id";
|
||||
};
|
||||
terminalEmulator = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "default Terminal emulator name";
|
||||
default = "alacritty";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
./services
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ let
|
|||
in
|
||||
with lib; {
|
||||
imports = [
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
./services
|
||||
];
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
./services
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../home-manager/users/jalr.nix
|
||||
../../users/jalr
|
||||
./services
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,21 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./default.nix
|
||||
];
|
||||
|
||||
jalr = {
|
||||
git = {
|
||||
user = {
|
||||
name = "Jakob Lechner";
|
||||
email = "mail@jalr.de";
|
||||
};
|
||||
signByDefault = true;
|
||||
};
|
||||
gpg.defaultKey = "3044E71E3DEFF49B586CF5809BF4FCCB90854DA9";
|
||||
};
|
||||
|
||||
users.users.jalr = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
|
|
@ -41,7 +26,7 @@
|
|||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
users.jalr = { lib, pkgs, ... }: {
|
||||
imports = [ ../modules ];
|
||||
imports = [ ./modules ];
|
||||
config = {
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./${nixosConfig.jalr.terminalEmulator}.nix
|
||||
./3d-printing.nix
|
||||
./alacritty.nix
|
||||
./aws.nix
|
||||
./claws-mail.nix
|
||||
./cli.nix
|
||||
|
|
@ -4,11 +4,11 @@
|
|||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = nixosConfig.jalr.git.user.name;
|
||||
userEmail = nixosConfig.jalr.git.user.email;
|
||||
userName = "Jakob Lechner";
|
||||
userEmail = "mail@jalr.de";
|
||||
signing = {
|
||||
key = nixosConfig.jalr.gpg.defaultKey;
|
||||
signByDefault = nixosConfig.jalr.git.signByDefault;
|
||||
key = "3044E71E3DEFF49B586CF5809BF4FCCB90854DA9";
|
||||
signByDefault = false;
|
||||
};
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
|
|
@ -3,8 +3,6 @@
|
|||
let
|
||||
solarized = import ../solarized.nix;
|
||||
terminalEmulator =
|
||||
if nixosConfig.jalr.terminalEmulator == "alacritty"
|
||||
then
|
||||
pkgs.writeShellScript "alacritty-sway-cwd" ''
|
||||
this_alacritty_pid="$(${pkgs.sway}/bin/swaymsg -t get_tree | ${pkgs.jq}/bin/jq -e 'recurse(.nodes[]?) | select((.focused==true) and (.app_id=="Alacritty")).pid')"
|
||||
|
||||
|
|
@ -17,8 +15,7 @@ let
|
|||
fi
|
||||
|
||||
exec ${pkgs.alacritty}/bin/alacritty
|
||||
''
|
||||
else nixosConfig.jalr.terminalEmulator;
|
||||
'';
|
||||
cfg = config.wayland.windowManager.sway.config;
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/swaywm/sway/3b2bc894a5ebbcbbd6707d45a25d171779c2e874/assets/Sway_Wallpaper_Blue_1920x1080.png";
|
||||
|
|
@ -113,16 +110,6 @@ in
|
|||
|
||||
output."*".bg = "${wallpaper} fill";
|
||||
|
||||
# FIXME
|
||||
#input = {
|
||||
# #"type:keyboard" = {
|
||||
# # xkb_layout = "neo";
|
||||
# #};
|
||||
#} // (lib.optionalAttrs (nixosConfig.networking.hostName == "mayushii") {
|
||||
# "type:touchpad".events = "disabled";
|
||||
# "2:10:TPPS/2_Elan_TrackPoint".pointer_accel = "-0.15";
|
||||
#});
|
||||
|
||||
keybindings = {
|
||||
"${cfg.modifier}+Return" = "exec ${cfg.terminal}";
|
||||
"${cfg.modifier}+Backspace" = "exec ${cfg.terminal}";
|
||||
Loading…
Add table
Add a link
Reference in a new issue