substituters, sway mod preference per user, move hosts/absolution to hosts/apalapucia, etc
This commit is contained in:
parent
d0bb2fe776
commit
d8d3f43c53
10 changed files with 275 additions and 279 deletions
|
|
@ -1,16 +1,15 @@
|
|||
{config, pkgs, lib, inputs, vars, ...}:{
|
||||
{config, pkgs, lib, inputs, vars, osConfig, ...}:{
|
||||
imports = [
|
||||
# things we import later
|
||||
];
|
||||
|
||||
home = rec {
|
||||
username = vars.user;
|
||||
username = osConfig.var.username;
|
||||
homeDirectory = "/home/${username}";
|
||||
stateVersion = "26.05";
|
||||
shell.enableBashIntegration = true;
|
||||
file = {
|
||||
".config/waybar/config".source = (if vars.user == "alyx" then config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/cyberhack" else config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/modern");
|
||||
".config/waybar/style.css".source = (if vars.user == "alyx" then config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/cyberhack.css" else config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/modern.css");
|
||||
".config/waybar/config".source = (if osConfig.var.username == "alyx" then config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/cyberhack" else config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/modern");
|
||||
".config/waybar/style.css".source = (if osConfig.var.username == "alyx" then config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/cyberhack.css" else config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.config/nixos/home/waybar/modern.css");
|
||||
};
|
||||
pointerCursor = {
|
||||
gtk.enable = true;
|
||||
|
|
@ -42,7 +41,7 @@
|
|||
programs.home-manager.enable = true;
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
settings.main.font = (if vars.user == "alyx" then "monospace:size=20" else "monospace:size=12");
|
||||
settings.main.font = (if osConfig.var.username == "alyx" then "monospace:size=20" else "monospace:size=12");
|
||||
settings.colors.alpha = "0.9";
|
||||
};
|
||||
|
||||
|
|
@ -55,7 +54,7 @@
|
|||
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/home/${vars.user}/Music";
|
||||
musicDirectory = "/home/${osConfig.var.username}/Music";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
|
|
@ -73,8 +72,8 @@
|
|||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user.name = vars.user;
|
||||
user.email = (if vars.user == "alyx" then "alyxwren@proton.me" else "beanigit@protonmail.com");
|
||||
user.name = osConfig.var.username;
|
||||
user.email = (if osConfig.var.username == "alyx" then "alyxwren@proton.me" else "beanigit@protonmail.com");
|
||||
commit.gpgsign = true;
|
||||
gpg.format = "ssh";
|
||||
user.signingKey = "~/.ssh/id_ed25519.pub";
|
||||
|
|
@ -96,13 +95,32 @@
|
|||
wayland.windowManager.sway.xwayland = true;
|
||||
wayland.windowManager.sway.package = pkgs.swayfx;
|
||||
wayland.windowManager.sway.config = null;
|
||||
|
||||
wayland.windowManager.sway.extraConfigEarly = (if osConfig.var.username == "alyx" then ''set $mod Mod1'' else ''set $mod Mod4'');
|
||||
|
||||
wayland.windowManager.sway.extraConfig = ''
|
||||
include ~/.config/nixos/home/wms/sway
|
||||
'';
|
||||
wayland.windowManager.sway.checkConfig = false;
|
||||
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
profile.name = "alyx-desktop";
|
||||
profile.outputs = [
|
||||
{ criteria = "Microstep MSI G273Q CA8A463100033"; position = "1600,0"; mode = "2560x1440@164.835007"; }
|
||||
{ criteria = "Dell Inc. Dell 2007FP MY546856GT2L"; position = "0,0"; mode = "1600x1200@60.000000"; }
|
||||
{ criteria = "Valve Corporation index HMD 0xEDE55842"; status = "disable"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.obs-studio.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
grim
|
||||
slurp
|
||||
fzf
|
||||
libsForQt5.qt5ct
|
||||
kdePackages.qt6ct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue