mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-14 20:33:59 +01:00
nix: Add home-manager config
This commit is contained in:
parent
4cfacb73ae
commit
5b402f4804
98
flake.nix
98
flake.nix
@ -11,7 +11,103 @@
|
||||
modules = [
|
||||
./configuration.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{ home-manager.useGlobalPkgs = true; }
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
users.users.user = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
home-manager.users.user = { pkgs, ... }: {
|
||||
home.username = "user";
|
||||
home.homeDirectory = "/home/user";
|
||||
home.packages = [ pkgs.httpie ];
|
||||
home.stateVersion = "22.11";
|
||||
programs.mpv.enable = true;
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
package = pkgs."maple-mono-NF";
|
||||
name = "MapleMono-NF";
|
||||
};
|
||||
settings = {
|
||||
enable_audio_bell = false;
|
||||
allow_remote_control = true;
|
||||
dynamic_background_opacity = true;
|
||||
background_opacity = "0.9";
|
||||
close_on_child_death = true;
|
||||
};
|
||||
};
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"middlemouse.paste" = false;
|
||||
"browser.download.useDownloadDir" = true;
|
||||
"ui.use_activity_cursor" = true;
|
||||
"browser.tabs.insertAfterCurrent" = true;
|
||||
};
|
||||
};
|
||||
programs.gitui.enable = true;
|
||||
programs.git = { diff-so-fancy = { enable = true; }; };
|
||||
programs.lf = { enable = true; };
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "bottom";
|
||||
position = "top";
|
||||
height = 30;
|
||||
modules-left = [ "wlr/taskbar" "tray" ];
|
||||
modules-center = [ "hyprland/window" ];
|
||||
modules-right =
|
||||
[ "battery" "backlight" "wireplumber" "clock" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
services.udiskie.enable = true;
|
||||
programs.swaylock = {
|
||||
package = pkgs."swaylock-effects";
|
||||
settings = {
|
||||
show-keyboard-layout = true;
|
||||
daemonize = true;
|
||||
font = "Noto Sans CJK JP";
|
||||
effect-blur = "5x2";
|
||||
clock = true;
|
||||
indicator = true;
|
||||
font-size = 25;
|
||||
indicator-radius = 85;
|
||||
indicator-thickness = 16;
|
||||
screenshots = true;
|
||||
fade-in = 1;
|
||||
};
|
||||
};
|
||||
editorconfig = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"*" = {
|
||||
charset = "utf-8";
|
||||
end_of_line = "lf";
|
||||
insert_final_newline = true;
|
||||
indent_size = 2;
|
||||
indent_style = "space";
|
||||
trim_trailing_whitespace = true;
|
||||
};
|
||||
"*.md" = { indent_style = "tab"; };
|
||||
"Makefile" = {
|
||||
indent_style = "tab";
|
||||
indent_size = 4;
|
||||
};
|
||||
"*.html" = {
|
||||
indent_style = "tab";
|
||||
indent_size = 4;
|
||||
};
|
||||
"*.go" = {
|
||||
indent_style = "tab";
|
||||
indent_size = 4;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user