[Nix] Reorganizes files a bit.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./features/audio.nix
|
||||
./features/hyprland.nix
|
||||
./features/linux-desktop.nix
|
||||
./features/development-linux.nix
|
||||
./features/haskell.nix
|
||||
./features/nix.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
@@ -12,22 +12,14 @@
|
||||
home.username = "drew";
|
||||
home.homeDirectory = "/home/drew";
|
||||
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Development
|
||||
git
|
||||
nix-prefetch-github
|
||||
|
||||
# Applications
|
||||
discord
|
||||
webcord # Discord app replacement
|
||||
element-desktop
|
||||
signal-desktop
|
||||
obsidian
|
||||
firefox
|
||||
waypaper # Wallpaper switcher
|
||||
feh
|
||||
|
||||
# Gaming
|
||||
mangohud
|
||||
@@ -39,26 +31,6 @@
|
||||
})
|
||||
protonup-ng
|
||||
vulkan-tools # useful for debugging Vulkan issues
|
||||
|
||||
# Desktop Environment
|
||||
networkmanagerapplet # network control
|
||||
hyprlock # lock screen
|
||||
wofi # launcher
|
||||
hyprpaper # wallpaper
|
||||
swayidle # lock on idle
|
||||
swayosd # volume pop-up
|
||||
eww # widgets
|
||||
swaynotificationcenter # notifications
|
||||
hyprpolkitagent # Privilege managent
|
||||
gnome-keyring # Secret management
|
||||
glib # for Gnome/GTK settings
|
||||
xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-gtk # GTK backend for XDG components like pickers
|
||||
grim # Screenshot provider
|
||||
hyprshot # Screenshot utility
|
||||
nwg-look # GTK settings editor
|
||||
playerctl # for universal play/pause etc
|
||||
wirelesstools
|
||||
];
|
||||
|
||||
xdg.desktopEntries = {
|
||||
@@ -69,30 +41,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Hint for electron apps to use wayland
|
||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
# GTK settings
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "adwaita";
|
||||
style.name = "adwaita-dark";
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
userName = "Drew Haven";
|
||||
userEmail = "drew.haven@gmail.com";
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
imports = [
|
||||
./development.nix
|
||||
./ssh.nix
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
55
home-manager/features/linux-desktop.nix
Normal file
55
home-manager/features/linux-desktop.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./audio.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Desktop Environment
|
||||
feh
|
||||
networkmanagerapplet # network control
|
||||
hyprlock # lock screen
|
||||
wofi # launcher
|
||||
hyprpaper # wallpaper
|
||||
swayidle # lock on idle
|
||||
swayosd # volume pop-up
|
||||
eww # widgets
|
||||
swaynotificationcenter # notifications
|
||||
hyprpolkitagent # Privilege managent
|
||||
gnome-keyring # Secret management
|
||||
glib # for Gnome/GTK settings
|
||||
xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-gtk # GTK backend for XDG components like pickers
|
||||
grim # Screenshot provider
|
||||
hyprshot # Screenshot utility
|
||||
nwg-look # GTK settings editor
|
||||
playerctl # for universal play/pause etc
|
||||
wirelesstools
|
||||
];
|
||||
|
||||
# Hint for electron apps to use wayland
|
||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
# GTK settings
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
};
|
||||
|
||||
# QT theming
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "adwaita";
|
||||
style.name = "adwaita-dark";
|
||||
};
|
||||
}
|
||||
10
home-manager/features/nix.nix
Normal file
10
home-manager/features/nix.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# Useful for getting the import information from github info for flakes.
|
||||
nix-prefetch-github
|
||||
];
|
||||
|
||||
# Enable flakes and nix-commnands.
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
}
|
||||
Reference in New Issue
Block a user