Users, use directory-driven users in flake.nix
This converts from the old manually defined users in flake.nix to a
dynamically defined users based on the directory structure. This is the
same as ba5fd48 but for users instead of hosts.
This commit is contained in:
parent
ba5fd48569
commit
0e5c6ab2c2
3 changed files with 30 additions and 13 deletions
|
|
@ -1,110 +0,0 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
home.username = "pan";
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
hypr.enable = true;
|
||||
hypr.monitor = {
|
||||
details = [
|
||||
"eDP-2,2256x1504@60,0x0,1"
|
||||
];
|
||||
};
|
||||
hypr.workspace = {
|
||||
workspaces = {
|
||||
"eDP-1" = [
|
||||
"home"
|
||||
"web"
|
||||
"chat"
|
||||
"med"
|
||||
];
|
||||
};
|
||||
scratchpad.enable = true;
|
||||
defaults = {
|
||||
"name:web" = [ "class:(librewolf)" ];
|
||||
"name:med" = [ "class:(librewolf),title:Picture-in-Picture" ];
|
||||
"name:chat" = [ "class:(Beeper)" ];
|
||||
};
|
||||
};
|
||||
hypr.windows.opaque = [
|
||||
"initialTitle:^(Discord Popout)$"
|
||||
"class:^(firefox)$"
|
||||
"class:^(Gimp)$"
|
||||
"class:^(feh)$"
|
||||
"class:^(mpv)$"
|
||||
];
|
||||
hypr.background = {
|
||||
enable = true;
|
||||
path = "${config.home.homeDirectory}/med/pix/bg.png";
|
||||
};
|
||||
hypr.cursor = {
|
||||
enable = true;
|
||||
theme = "miku";
|
||||
};
|
||||
hypr = {
|
||||
screenshot.enable = true;
|
||||
mouse.sensitivity = -0.52;
|
||||
polkit.enable = true;
|
||||
master.mfact = 0.53;
|
||||
xwayland.videobridge.enable = true;
|
||||
};
|
||||
# ags.enable = true;
|
||||
rofi.enable = true;
|
||||
|
||||
timer.enableHourly = true;
|
||||
timer.enableQuarterly = true;
|
||||
colors.enable = true;
|
||||
manpages.enable = true;
|
||||
trash.enable = true;
|
||||
|
||||
fish.enable = true;
|
||||
kitty.enable = true;
|
||||
kitty.make_default = true;
|
||||
kitty.font = "Cascadia Code";
|
||||
git.enable = true;
|
||||
git.username = "Julia Lange";
|
||||
git.email = "public@julialange.org";
|
||||
ssh.enable = true;
|
||||
librewolf.enable = true;
|
||||
librewolf.make_default = true;
|
||||
|
||||
mpv.enable = true;
|
||||
zathura.enable = true;
|
||||
feh.enable = true;
|
||||
|
||||
neovim.enable = true;
|
||||
neovim.languages = {
|
||||
c.enable = true;
|
||||
nix.enable = true;
|
||||
rust.enable = true;
|
||||
};
|
||||
neovim.plugins = {
|
||||
comments.enable = true;
|
||||
fugitive.enable = true;
|
||||
lualine.enable = true;
|
||||
luasnip.enable = true;
|
||||
nvimcmp.enable = true;
|
||||
telescope = {
|
||||
enable = true;
|
||||
fzf.enable = true;
|
||||
};
|
||||
treesitter.enable = true;
|
||||
wiki.enable = true;
|
||||
};
|
||||
|
||||
lf.enable = true;
|
||||
lf.hiddenfiles = [
|
||||
"${config.home.homeDirectory}/.librewolf"
|
||||
"${config.home.homeDirectory}/.nix-defexpr"
|
||||
"${config.home.homeDirectory}/.nix-profile"
|
||||
"${config.home.homeDirectory}/.nv"
|
||||
"${config.home.homeDirectory}/.pki"
|
||||
];
|
||||
zoxide.enable = true;
|
||||
|
||||
gimp.enable = true;
|
||||
|
||||
beeper.enable = true;
|
||||
discord.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue