refactor(nix): More split
Also added floorp, but not functional at the moment, it requires 24.11
This commit is contained in:
parent
0e80eb3083
commit
98d28abc3f
8 changed files with 142 additions and 42 deletions
|
@ -24,7 +24,22 @@ in
|
|||
inherit pkgs;
|
||||
extraSpecialArgs = { inherit inputs pkgs home-manager vars; };
|
||||
modules = [
|
||||
./ziro.nix
|
||||
./ziro
|
||||
./ziro/darwin.nix
|
||||
];
|
||||
};
|
||||
|
||||
"ziro@potato" =
|
||||
let
|
||||
inherit (mkSystem "x86_64-linux" nixpkgs) system pkgs;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = { inherit inputs pkgs home-manager vars; };
|
||||
modules = [
|
||||
./ziro
|
||||
./ziro/linux.nix
|
||||
#../modules/home-manager/floorp.nix # FIXME: Added on 24.11
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
{ pkgs, config, vars, ... }:
|
||||
|
||||
let
|
||||
dirPrefix = if pkgs.stdenv.isDarwin then "/Users/" else "/home/";
|
||||
in {
|
||||
home = {
|
||||
username = "ziro";
|
||||
homeDirectory = dirPrefix + "ziro";
|
||||
};
|
||||
|
||||
programs = {
|
||||
browserpass = {
|
||||
enable = true;
|
||||
browsers = [ "brave" "chrome" ]; # Arc and Chrome share the same `Application Support` dir, not sure why tbh.
|
||||
};
|
||||
};
|
||||
|
||||
# Swap CapsLock with Esc for better vi-mode experience.
|
||||
launchd.agents.CapsEscSwap = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [
|
||||
"/usr/bin/hidutil"
|
||||
"property"
|
||||
"--set"
|
||||
"{\"UserKeyMapping\":[{\"HIDKeyboardModifierMappingSrc\":0x700000039,\"HIDKeyboardModifierMappingDst\":0x700000029},{\"HIDKeyboardModifierMappingSrc\":0x700000029,\"HIDKeyboardModifierMappingDst\":0x700000039}]}"
|
||||
];
|
||||
RunAtLoad = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
}
|
24
.config/nix/users/ziro/darwin.nix
Normal file
24
.config/nix/users/ziro/darwin.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, config, vars, ... }:
|
||||
|
||||
{
|
||||
home.homeDirectory = "/Users/ziro";
|
||||
|
||||
programs.browserpass = {
|
||||
enable = true;
|
||||
browsers = [ "brave" "chrome" ]; # Arc and Chrome share the same `Application Support` dir, not sure why tbh.
|
||||
};
|
||||
|
||||
# Swap CapsLock with Esc for better vi-mode experience.
|
||||
launchd.agents.CapsEscSwap = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [
|
||||
"/usr/bin/hidutil"
|
||||
"property"
|
||||
"--set"
|
||||
''{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029},{"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000039}]}''
|
||||
];
|
||||
RunAtLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
9
.config/nix/users/ziro/default.nix
Normal file
9
.config/nix/users/ziro/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, config, vars, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
username = "ziro";
|
||||
};
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
}
|
5
.config/nix/users/ziro/linux.nix
Normal file
5
.config/nix/users/ziro/linux.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, config, vars, ... }:
|
||||
|
||||
{
|
||||
home.homeDirectory = "/home/ziro";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue