Reimplement home manager files
This commit is contained in:
parent
5f8cbf469b
commit
d333524003
11 changed files with 101 additions and 60 deletions
|
|
@ -37,7 +37,7 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = inputs;
|
extraSpecialArgs = inputs;
|
||||||
users.tobi.imports = [ ./modules/home-manager ];
|
users.tobi = import ./home;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
17
.config/nix/home/alacritty.nix
Normal file
17
.config/nix/home/alacritty.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings.font = {
|
||||||
|
size = 14;
|
||||||
|
normal.family = "Iosevka Comfy";
|
||||||
|
normal.style = "Regular";
|
||||||
|
};
|
||||||
|
settings.window = {
|
||||||
|
padding.x = 18;
|
||||||
|
padding.y = 18;
|
||||||
|
opacity = 0.85;
|
||||||
|
decorations = "Buttonless";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
.config/nix/home/amethyst.nix
Normal file
9
.config/nix/home/amethyst.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
xdg.configFile."amethyst/amethyst.yml".text = ''
|
||||||
|
window-margins: true
|
||||||
|
window-margin-size: 10
|
||||||
|
mouse-swaps-windows: true
|
||||||
|
mouse-resizes-windows: true
|
||||||
|
'';
|
||||||
|
}
|
||||||
19
.config/nix/home/core.nix
Normal file
19
.config/nix/home/core.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
raycast
|
||||||
|
ripgrep
|
||||||
|
tree
|
||||||
|
curl
|
||||||
|
less
|
||||||
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
PAGER = "less";
|
||||||
|
CLICOLOR = 1;
|
||||||
|
EDITOR = "emacs";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.bat.enable = true;
|
||||||
|
programs.git.enable = true;
|
||||||
|
}
|
||||||
21
.config/nix/home/default.nix
Normal file
21
.config/nix/home/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
username = "tobi";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./alacritty.nix
|
||||||
|
./amethyst.nix
|
||||||
|
./core.nix
|
||||||
|
./starship.nix
|
||||||
|
./zsh.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
username = username;
|
||||||
|
homeDirectory = "/Users/${username}";
|
||||||
|
stateVersion = "23.05";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
||||||
10
.config/nix/home/starship.nix
Normal file
10
.config/nix/home/starship.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings.gcloud.disabled = true;
|
||||||
|
settings.aws.disabled = true;
|
||||||
|
settings.hostname.style = "bold green";
|
||||||
|
};
|
||||||
|
}
|
||||||
13
.config/nix/home/zsh.nix
Normal file
13
.config/nix/home/zsh.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
ls = "ls --color=auto -F";
|
||||||
|
nixswitch = "pushd ~/.config/nix; darwin-rebuild switch --flake .#";
|
||||||
|
nixup = "pushd ~/.config/nix; nix flake update";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -2,17 +2,27 @@
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
onActivation.autoUpdate = false;
|
||||||
|
|
||||||
brews = [
|
brews = [
|
||||||
|
"curl"
|
||||||
"imagemagick"
|
"imagemagick"
|
||||||
"trippy"
|
"trippy"
|
||||||
|
"wget"
|
||||||
];
|
];
|
||||||
|
|
||||||
casks = [
|
casks = [
|
||||||
"amethyst"
|
"amethyst"
|
||||||
|
"anki"
|
||||||
|
"caffeine"
|
||||||
"firefox"
|
"firefox"
|
||||||
"logseq"
|
"logseq"
|
||||||
|
"iglance"
|
||||||
|
"karabiner-elements"
|
||||||
|
"nextcloud"
|
||||||
"protonmail-bridge"
|
"protonmail-bridge"
|
||||||
"protonvpn"
|
"protonvpn"
|
||||||
|
"temurin17"
|
||||||
"thunderbird"
|
"thunderbird"
|
||||||
"vlc"
|
"vlc"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
shells = with pkgs; [ bash zsh fish ];
|
shells = with pkgs; [ bash zsh fish ];
|
||||||
loginShell = pkgs.zsh;
|
loginShell = pkgs.zsh;
|
||||||
|
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
{ pkgs, ... }: {
|
|
||||||
home.username = "tobi";
|
|
||||||
home.homeDirectory = "/Users/tobi";
|
|
||||||
home.stateVersion = "23.05";
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
raycast
|
|
||||||
ripgrep
|
|
||||||
tree
|
|
||||||
curl
|
|
||||||
less
|
|
||||||
];
|
|
||||||
home.sessionVariables = {
|
|
||||||
PAGER = "less";
|
|
||||||
CLICOLOR = 1;
|
|
||||||
EDITOR = "emacs";
|
|
||||||
};
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
programs.bat.enable = true;
|
|
||||||
programs.git.enable = true;
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
shellAliases = {
|
|
||||||
ls = "ls --color=auto -F";
|
|
||||||
nixswitch = "pushd ~/.config/nix; darwin-rebuild switch --flake .#";
|
|
||||||
nixup = "pushd ~/.config/nix; nix flake update";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings.gcloud.disabled = true;
|
|
||||||
settings.aws.disabled = true;
|
|
||||||
settings.hostname.style = "bold green";
|
|
||||||
};
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings.font = {
|
|
||||||
size = 14;
|
|
||||||
normal.family = "Iosevka Comfy";
|
|
||||||
normal.style = "Regular";
|
|
||||||
};
|
|
||||||
settings.window = {
|
|
||||||
padding.x = 18;
|
|
||||||
padding.y = 18;
|
|
||||||
opacity = 0.85;
|
|
||||||
decorations = "Buttonless";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xdg.configFile."amethyst/amethyst.yml".text = ''
|
|
||||||
window-margins: true
|
|
||||||
window-margin-size: 10
|
|
||||||
mouse-swaps-windows: true
|
|
||||||
mouse-resizes-windows: true
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
menuExtraClock = {
|
menuExtraClock = {
|
||||||
|
IsAnalog = false;
|
||||||
Show24Hour = true;
|
Show24Hour = true;
|
||||||
ShowDate = 0;
|
ShowDate = 0;
|
||||||
ShowDayOfWeek = false;
|
ShowDayOfWeek = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue