[Nix] Reorganizes files a bit.
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./features/audio.nix
|
./features/linux-desktop.nix
|
||||||
./features/hyprland.nix
|
|
||||||
./features/development-linux.nix
|
./features/development-linux.nix
|
||||||
./features/haskell.nix
|
./features/haskell.nix
|
||||||
|
./features/nix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
@@ -12,22 +12,14 @@
|
|||||||
home.username = "drew";
|
home.username = "drew";
|
||||||
home.homeDirectory = "/home/drew";
|
home.homeDirectory = "/home/drew";
|
||||||
|
|
||||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Development
|
|
||||||
git
|
|
||||||
nix-prefetch-github
|
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
discord
|
discord
|
||||||
webcord # Discord app replacement
|
|
||||||
element-desktop
|
element-desktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
obsidian
|
obsidian
|
||||||
firefox
|
firefox
|
||||||
waypaper # Wallpaper switcher
|
waypaper # Wallpaper switcher
|
||||||
feh
|
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
mangohud
|
mangohud
|
||||||
@@ -39,26 +31,6 @@
|
|||||||
})
|
})
|
||||||
protonup-ng
|
protonup-ng
|
||||||
vulkan-tools # useful for debugging Vulkan issues
|
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 = {
|
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 = {
|
programs.git = {
|
||||||
userName = "Drew Haven";
|
userName = "Drew Haven";
|
||||||
userEmail = "drew.haven@gmail.com";
|
userEmail = "drew.haven@gmail.com";
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./development.nix
|
./development.nix
|
||||||
./ssh.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"];
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
../../../home-manager/features/development.nix
|
../../../home-manager/features/development.nix
|
||||||
../../../home-manager/features/kubernetes.nix
|
../../../home-manager/features/kubernetes.nix
|
||||||
../../../home-manager/features/macos
|
../../../home-manager/features/macos
|
||||||
|
../../../home-manager/features/nix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.username = "drew";
|
home.username = "drew";
|
||||||
|
|||||||
Reference in New Issue
Block a user