-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add back reference home-manager config
- Loading branch information
Showing
4 changed files
with
390 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -717,9 +717,9 @@ In contrast, this defines home-manager systems, which I only have one of. | |
|
||
#+begin_src nix :tangle no :noweb-ref flakehomeconf | ||
|
||
"leons@PCisLee" = inputs.home-manager.lib.homeManagerConfiguration { | ||
"swarsel@fedora" = inputs.home-manager.lib.homeManagerConfiguration { | ||
modules = homeModules ++ mixedModules ++ [ | ||
./profiles/surface/home.nix | ||
./profiles/home-manager/home.nix | ||
]; | ||
}; | ||
|
||
|
@@ -1789,6 +1789,128 @@ in | |
} | ||
|
||
#+end_src | ||
|
||
**** Home-manager only | ||
|
||
***** Home manager | ||
:PROPERTIES: | ||
:CUSTOM_ID: h:483a26b5-5a40-4417-9ffb-67cc2cf07161 | ||
:END: | ||
|
||
Special things to note here: We are running xcape to allow =CAPS= to act as =CTRL= and =ESC=. Also we are using =nixGL= in most places. | ||
|
||
#+begin_src nix :tangle profile/home-manager/home.nix | ||
|
||
{ config, pkgs, lib, fetchFromGitHub, ... }: | ||
|
||
{ | ||
programs.home-manager.enable = true; | ||
home.username = "swarsel"; | ||
home.homeDirectory = "/home/swarsel"; | ||
|
||
home.stateVersion = "23.05"; # Please read the comment before changing. | ||
|
||
stylix.image = ../../wallpaper/surfacewp.png; | ||
<<theme>> | ||
|
||
nixpkgs = { | ||
config = { | ||
allowUnfree = true; | ||
allowUnfreePredicate = (_: true); | ||
}; | ||
}; | ||
services.xcape = { | ||
enable = true; | ||
mapExpression = { | ||
Control_L = "Escape"; | ||
}; | ||
}; | ||
#keyboard config | ||
home.keyboard.layout = "us"; | ||
|
||
sops.age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/sops" ]; | ||
|
||
# waybar config | ||
programs.waybar.settings.mainBar.cpu.format = "{icon0} {icon1} {icon2} {icon3}"; | ||
|
||
programs.waybar.settings.mainBar.temperature.hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input"; | ||
programs.waybar.settings.mainBar.modules-right = ["custom/outer-left-arrow-dark" "mpris" "custom/left-arrow-light" | ||
"network" | ||
"custom/left-arrow-dark" | ||
"pulseaudio" | ||
"custom/left-arrow-light" | ||
"battery" | ||
"custom/left-arrow-dark" | ||
"temperature" | ||
"custom/left-arrow-light" | ||
"disk" | ||
"custom/left-arrow-dark" | ||
"memory" | ||
"custom/left-arrow-light" | ||
"cpu" | ||
"custom/left-arrow-dark" | ||
"tray" | ||
"custom/left-arrow-light" | ||
"clock#2" | ||
"custom/left-arrow-dark" | ||
"clock#1" ]; | ||
services.blueman-applet.enable = true; | ||
home.packages = with pkgs; [ | ||
# nixgl.auto.nixGLDefault | ||
evince | ||
# nodejs_20 | ||
|
||
# messaging | ||
# we use gomuks for RAM preservation, but keep schildi around for files and images | ||
]; | ||
|
||
programs.zsh.initExtra = " | ||
export GPG_TTY=\"$(tty)\" | ||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | ||
gpgconf --launch gpg-agent | ||
"; | ||
|
||
# sway config | ||
wayland.windowManager.sway= { | ||
config = rec { | ||
input = { | ||
"*" = { | ||
xkb_layout = "us"; | ||
xkb_options = "ctrl:nocaps,grp:win_space_toggle"; | ||
xkb_variant = "altgr-intl"; | ||
}; | ||
"type:touchpad" = { | ||
dwt = "enabled"; | ||
tap = "enabled"; | ||
natural_scroll = "enabled"; | ||
middle_emulation = "enabled"; | ||
}; | ||
}; | ||
|
||
output = { | ||
eDP-1 = { | ||
mode = "[email protected]"; | ||
scale = "1"; | ||
bg = "~/.dotfiles/wallpaper/surfacewp.png fill"; | ||
}; | ||
}; | ||
|
||
keybindings = let | ||
inherit (config.wayland.windowManager.sway.config) modifier; | ||
in { | ||
}; | ||
|
||
startup = [ | ||
]; | ||
|
||
}; | ||
|
||
}; | ||
} | ||
|
||
#+end_src | ||
|
||
|
||
**** Threed (Surface Pro 3) | ||
:PROPERTIES: | ||
:CUSTOM_ID: h:7b1a8f91-ef43-433c-ba4c-c5baf50e1de4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.