-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Large refactoring and organisation of modules
- Loading branch information
Showing
25 changed files
with
284 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,12 @@ | ||
{ | ||
pkgs, | ||
user, | ||
... | ||
}: { | ||
home.stateVersion = "23.11"; | ||
programs.home-manager.enable = true; | ||
dconf.enable = true; | ||
nixpkgs.config.allowUnfree = true; | ||
systemd.user.startServices = "sd-switch"; | ||
programs.home-manager.enable = true; | ||
|
||
# temp fix while sourcehut is down | ||
manual.manpages.enable = false; | ||
|
||
# this needs to be done separately for home manager | ||
nixpkgs = { | ||
config.allowUnfree = true; | ||
overlays = import ../overlays {inherit pkgs;}; | ||
}; | ||
|
||
xdg = { | ||
enable = true; | ||
userDirs = { | ||
enable = true; | ||
desktop = "/home/${user}"; | ||
templates = "/home/${user}"; | ||
publicShare = "/home/${user}"; | ||
documents = "/home/${user}/documents"; | ||
download = "/home/${user}/downloads"; | ||
music = "/home/${user}/music"; | ||
pictures = "/home/${user}/pictures"; | ||
videos = "/home/${user}/videos"; | ||
}; | ||
|
||
desktopEntries."transmission-magnet" = { | ||
name = "Transmission add torrent"; | ||
exec = ''add-torrent %u''; | ||
mimeType = ["x-scheme-handler/magnet"]; | ||
}; | ||
services = { | ||
easyeffects.enable = true; | ||
udiskie.enable = true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,57 @@ | ||
# Reusable Home-manager modules | ||
{ | ||
rec { | ||
polybar = import ./polybar; | ||
xmonad = import ./xmonad; | ||
common = import ./common.nix; | ||
neovim = import ./neovim.nix; | ||
zsh = import ./zsh.nix; | ||
xresources = import ./xresources.nix; | ||
wezterm = import ./wezterm.nix; | ||
xinitrc = import ./xinitrc.nix; | ||
dark-mode = import ./dark-mode.nix; | ||
discord = import ./discord.nix; | ||
dunst = import ./dunst.nix; | ||
picom = import ./picom.nix; | ||
firefox = import ./firefox.nix; | ||
flameshot = import ./flameshot.nix; | ||
git = import ./git.nix; | ||
ssh-personal = import ./ssh-personal.nix; | ||
ssh-work = import ./ssh-work.nix; | ||
gtk = import ./gtk.nix; | ||
hidpi = import ./hidpi.nix; | ||
rofi = import ./rofi.nix; | ||
discord = import ./discord.nix; | ||
imv = import ./imv.nix; | ||
mpv = import ./mpv.nix; | ||
neovim = import ./neovim.nix; | ||
picom = import ./picom.nix; | ||
redshift = import ./redshift.nix; | ||
flameshot = import ./flameshot.nix; | ||
rofi = import ./rofi.nix; | ||
ssh-personal = import ./ssh-personal.nix; | ||
ssh-work = import ./ssh-work.nix; | ||
starship = import ./starship.nix; | ||
imv = import ./imv.nix; | ||
wezterm = import ./wezterm.nix; | ||
xdg = import ./xdg.nix; | ||
xinitrc = import ./xinitrc.nix; | ||
xresources = import ./xresources.nix; | ||
yazi = import ./yazi.nix; | ||
gtk = import ./gtk.nix; | ||
xmonad = import ./xmonad; | ||
polybar = import ./polybar; | ||
mpv = import ./mpv.nix; | ||
zsh = import ./zsh.nix; | ||
|
||
default-modules = [ | ||
polybar | ||
xmonad | ||
common | ||
dark-mode | ||
discord | ||
dunst | ||
firefox | ||
flameshot | ||
git | ||
gtk | ||
imv | ||
mpv | ||
neovim | ||
picom | ||
redshift | ||
rofi | ||
ssh-personal | ||
ssh-work | ||
starship | ||
wezterm | ||
xdg | ||
xinitrc | ||
xresources | ||
yazi | ||
zsh | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
programs.firefox = { | ||
enable = true; | ||
policies = { | ||
DownloadDirectory = "\${home}/downloads"; | ||
OfferToSaveLogins = false; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{user, ...}: { | ||
xdg = { | ||
enable = true; | ||
userDirs = { | ||
enable = true; | ||
desktop = "/home/${user}"; | ||
templates = "/home/${user}"; | ||
publicShare = "/home/${user}"; | ||
documents = "/home/${user}/documents"; | ||
download = "/home/${user}/downloads"; | ||
music = "/home/${user}/music"; | ||
pictures = "/home/${user}/pictures"; | ||
videos = "/home/${user}/videos"; | ||
}; | ||
|
||
desktopEntries."transmission-magnet" = { | ||
name = "Transmission add torrent"; | ||
exec = ''add-torrent %u''; | ||
mimeType = ["x-scheme-handler/magnet"]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.