[nix] Reorganizes files and makes an apps folder.

This commit is contained in:
2025-02-12 19:38:42 -08:00
parent 3ba070810b
commit eee5479bf9
6 changed files with 46 additions and 40 deletions

View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
element-desktop
];
xdg.desktopEntries = {
element-desktop = {
name = "Element";
# Custom options to reduce flickering under wayland.
exec = "element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu";
};
};
}

View File

@@ -1,38 +0,0 @@
{ pkgs, inputs, ... }:
{
imports = [
./features/linux-desktop.nix
./features/development-linux.nix
./features/haskell.nix
./features/nix.nix
./features/gaming.nix
];
home.stateVersion = "24.11";
home.username = "drew";
home.homeDirectory = "/home/drew";
home.packages = with pkgs; [
# Applications
discord
element-desktop
signal-desktop
obsidian
firefox
waypaper # Wallpaper switcher
];
xdg.desktopEntries = {
element-desktop = {
name = "Element";
# Custom options to reduce flickering under wayland.
exec = "element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu";
};
};
programs.git = {
userName = "Drew Haven";
userEmail = "drew.haven@gmail.com";
};
}

View File

@@ -6,7 +6,6 @@
];
home.packages = with pkgs; [
# Desktop Environment
feh
networkmanagerapplet # network control
hyprlock # lock screen
@@ -26,6 +25,7 @@
nwg-look # GTK settings editor
playerctl # for universal play/pause etc
wirelesstools
waypaper # Wallpaper switcher
];
# Hint for electron apps to use wayland

View File

@@ -16,6 +16,7 @@ in
viAlias = true;
vimAlias = true;
defaultEditor = true;
withNodeJs = true;
plugins = with pkgs.vimPlugins; [
# lazy-nvim

View File

@@ -16,7 +16,7 @@ in nixpkgs.lib.nixosSystem {
home-manager.users.drew = { pkgs, inputs, ... }:
{
imports = [
(self + "/home-manager/drew.nix")
./drew.nix
];
};
home-manager.useGlobalPkgs = true;

View File

@@ -0,0 +1,29 @@
{ pkgs, inputs, self, ... }:
{
imports = map (x: ../../../home-manager + x) [
"/features/linux-desktop.nix"
"/features/development-linux.nix"
"/features/haskell.nix"
"/features/nix.nix"
"/features/gaming.nix"
"/apps/element.nix"
];
home.stateVersion = "24.11";
home.username = "drew";
home.homeDirectory = "/home/drew";
programs.git = {
userName = "Drew Haven";
userEmail = "drew.haven@gmail.com";
};
home.packages = with pkgs; [
# Applications
discord
signal-desktop
obsidian
firefox
];
}