Simplify package definitions
Move included nixpkg definitions directly into collection files, reserve imports for home-manager package configurations. Move few remaining gui sections up a level
This commit is contained in:
parent
8ed8fb15d8
commit
836863040c
4
nixos/home/browser/librewolf.nix
Normal file
4
nixos/home/browser/librewolf.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.librewolf.enable = true;
|
||||
}
|
|
@ -1,9 +1,8 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../desktop
|
||||
../../browser/librewolf.nix
|
||||
../../desktop/wayland/hyprland.nix
|
||||
|
||||
../../env/fonts/firacode.nix
|
||||
../../env/shell/bash.nix
|
||||
../../env/shell/fish.nix
|
||||
|
@ -13,20 +12,24 @@
|
|||
../../env/nixpkgs.nix
|
||||
../../env/ssh.nix
|
||||
../../env/starship.nix
|
||||
|
||||
../../git/personal
|
||||
|
||||
../../gui/browser/chromium-wayland.nix
|
||||
../../gui/dev/neovide.nix
|
||||
../../gui/documents/zotero.nix
|
||||
../../gui/gaming/steam.nix
|
||||
../../gui/messaging/discord.nix
|
||||
../../gui/messaging/element.nix
|
||||
../../gui/messaging/signal.nix
|
||||
../../gui/security
|
||||
../../gui/terminal/foot.nix
|
||||
../../gui/terminal/wezterm.nix
|
||||
|
||||
../../tui
|
||||
../../git/personal.nix
|
||||
../../terminal/foot.nix
|
||||
../../terminal/wezterm.nix
|
||||
../../tui/neovim.nix
|
||||
../../tui/lazygit.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
bitwarden
|
||||
file
|
||||
marktext
|
||||
mesa
|
||||
neovide
|
||||
nomachine-client
|
||||
otpclient
|
||||
silver-searcher
|
||||
signal-desktop
|
||||
steam
|
||||
steam-run
|
||||
zotero
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../desktop
|
||||
../../browser/librewolf.nix
|
||||
../../desktop/wayland/hyprland.nix
|
||||
|
||||
../../env/fonts/firacode.nix
|
||||
../../env/shell/bash.nix
|
||||
../../env/shell/fish.nix
|
||||
|
@ -13,21 +12,24 @@
|
|||
../../env/nixpkgs.nix
|
||||
../../env/ssh.nix
|
||||
../../env/starship.nix
|
||||
|
||||
../../git/work
|
||||
|
||||
../../gui/browser/chromium-wayland.nix
|
||||
../../gui/dev/neovide.nix
|
||||
../../gui/documents/libreoffice.nix
|
||||
../../gui/documents/marktext.nix
|
||||
../../gui/documents/zotero.nix
|
||||
../../gui/messaging/signal.nix
|
||||
../../gui/messaging/zoom.nix
|
||||
../../gui/remote/nomachine.nix
|
||||
../../gui/security
|
||||
../../gui/terminal/wezterm.nix
|
||||
../../gui/terminal/foot.nix
|
||||
|
||||
../../tui
|
||||
../../git/work.nix
|
||||
../../terminal/wezterm.nix
|
||||
../../terminal/foot.nix
|
||||
../../tui/neovim.nix
|
||||
../../tui/lazygit.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
bitwarden
|
||||
file
|
||||
libreoffice-fresh
|
||||
marktext
|
||||
neovide
|
||||
nomachine-client
|
||||
otpclient
|
||||
silver-searcher
|
||||
signal-desktop
|
||||
teams
|
||||
zoom-us
|
||||
zotero
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./common
|
||||
./wayland
|
||||
./xorg
|
||||
];
|
||||
}
|
|
@ -1,44 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../common/gtk.nix
|
||||
../common/dunst.nix
|
||||
../common/rofi.nix
|
||||
./waybar.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
pipewire
|
||||
wireplumber
|
||||
wl-clipboard
|
||||
swayimg
|
||||
hyprpaper
|
||||
dolphin
|
||||
jq
|
||||
socat
|
||||
];
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
screenshots = true;
|
||||
clock = true;
|
||||
indicator = true;
|
||||
indicator-radius = 100;
|
||||
indicator-thickness = 7;
|
||||
effect-blur = "7x5";
|
||||
effect-vignette = "0.5:0.5";
|
||||
ring-color = "bb00cc";
|
||||
key-hl-color = "00000000";
|
||||
line-color = "00000088";
|
||||
separator-color = "00000000";
|
||||
grace = 2;
|
||||
fade-in = 0.2;
|
||||
};
|
||||
};
|
||||
programs.eww = {
|
||||
enable = true;
|
||||
package = pkgs.eww-wayland;
|
||||
configDir = ./config/eww;
|
||||
};
|
||||
programs.rofi.package = pkgs.rofi-wayland;
|
||||
}
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"1:Web": "",
|
||||
"2:Term": "",
|
||||
"3:Code": ""
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
|
@ -19,6 +20,15 @@
|
|||
"9": "",
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": "",
|
||||
"1:web": "",
|
||||
"2:code": "",
|
||||
"3:term": "",
|
||||
"4:work": "",
|
||||
"5:music": "",
|
||||
"6:docs": "",
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ wl-clipboard ];
|
||||
}
|
12
nixos/home/desktop/wayland/eww.nix
Normal file
12
nixos/home/desktop/wayland/eww.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
jq
|
||||
socat
|
||||
];
|
||||
programs.eww = {
|
||||
enable = true;
|
||||
package = pkgs.eww-wayland;
|
||||
configDir = ./config/eww;
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
|
@ -10,13 +10,26 @@ in
|
|||
imports = [
|
||||
hyprland.homeManagerModules.default
|
||||
./common.nix
|
||||
./swaylock.nix
|
||||
./eww.nix
|
||||
./waybar.nix
|
||||
../common/gtk.nix
|
||||
../common/dunst.nix
|
||||
../common/rofi.nix
|
||||
../xorg/xresources.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
swayimg
|
||||
hyprpaper
|
||||
dolphin
|
||||
];
|
||||
programs.rofi.package = pkgs.rofi-wayland;
|
||||
xdg.configFile."hypr" = {
|
||||
source = ./config/hypr;
|
||||
# recursive = true;
|
||||
# text = "# test";
|
||||
};
|
||||
xsession.enable = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
|
|
22
nixos/home/desktop/wayland/swaylock.nix
Normal file
22
nixos/home/desktop/wayland/swaylock.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
screenshots = true;
|
||||
clock = true;
|
||||
indicator = true;
|
||||
indicator-radius = 100;
|
||||
indicator-thickness = 7;
|
||||
effect-blur = "7x5";
|
||||
effect-vignette = "0.5:0.5";
|
||||
ring-color = "bb00cc";
|
||||
key-hl-color = "00000000";
|
||||
line-color = "00000088";
|
||||
separator-color = "00000000";
|
||||
grace = 2;
|
||||
fade-in = 0.2;
|
||||
};
|
||||
};
|
||||
}
|
2
nixos/home/desktop/xorg/common.nix
Normal file
2
nixos/home/desktop/xorg/common.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ ... }:
|
||||
{ xsession.enable = true; }
|
|
@ -1,5 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./xresources.nix ];
|
||||
xsession.enable = true;
|
||||
}
|
7
nixos/home/env/fonts/default.nix
vendored
7
nixos/home/env/fonts/default.nix
vendored
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./firacode.nix
|
||||
./iosevka.nix
|
||||
];
|
||||
}
|
5
nixos/home/env/qemu.nix
vendored
5
nixos/home/env/qemu.nix
vendored
|
@ -1,5 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ qemu ];
|
||||
}
|
|
@ -1,10 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
../env/bat.nix
|
||||
../env/ssh.nix
|
||||
../env/shell
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Evie Litherland-Smith";
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ../default.nix ];
|
||||
imports = [ ./common.nix ];
|
||||
programs.git.userEmail = "evie@xenia.me.uk";
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ../default.nix ];
|
||||
imports = [ ./common.nix ];
|
||||
programs.git.userEmail = "evie.litherland-smith@ukaea.uk";
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ neovide ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ libreoffice-fresh ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ marktext ];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
#services.nextcloud-client = {
|
||||
# enable = true;
|
||||
# startInBackground = true;
|
||||
#};
|
||||
home.packages = with pkgs; [ zotero ];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
mesa
|
||||
steam
|
||||
steam-run
|
||||
];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ discord ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ element-desktop ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ signal-desktop ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ zoom-us ];
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
nomachine-client
|
||||
];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ x2goclient ];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ bitwarden otpclient ];
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
file
|
||||
silver-searcher
|
||||
lynx
|
||||
];
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
./lazygit.nix
|
||||
./neovim.nix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue