[nix] Reorganizes files and makes an apps folder.
This commit is contained in:
14
home-manager/apps/element.nix
Normal file
14
home-manager/apps/element.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Desktop Environment
|
|
||||||
feh
|
feh
|
||||||
networkmanagerapplet # network control
|
networkmanagerapplet # network control
|
||||||
hyprlock # lock screen
|
hyprlock # lock screen
|
||||||
@@ -26,6 +25,7 @@
|
|||||||
nwg-look # GTK settings editor
|
nwg-look # GTK settings editor
|
||||||
playerctl # for universal play/pause etc
|
playerctl # for universal play/pause etc
|
||||||
wirelesstools
|
wirelesstools
|
||||||
|
waypaper # Wallpaper switcher
|
||||||
];
|
];
|
||||||
|
|
||||||
# Hint for electron apps to use wayland
|
# Hint for electron apps to use wayland
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ in
|
|||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
withNodeJs = true;
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
# lazy-nvim
|
# lazy-nvim
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ in nixpkgs.lib.nixosSystem {
|
|||||||
home-manager.users.drew = { pkgs, inputs, ... }:
|
home-manager.users.drew = { pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(self + "/home-manager/drew.nix")
|
./drew.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|||||||
29
system/hosts/drew-desktop/drew.nix
Normal file
29
system/hosts/drew-desktop/drew.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user