zenix: tidy up
This commit is contained in:
parent
7b943ae1f6
commit
44c0812e94
12 changed files with 78 additions and 77 deletions
12
flake.nix
12
flake.nix
|
|
@ -33,13 +33,12 @@
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
./hardware/zenix.nix
|
./hardware/zenix.nix
|
||||||
(auto-login "Hyprland")
|
(auto-login "Hyprland")
|
||||||
|
./nixos/programs/hyprland.nix
|
||||||
./nixos/programs/gamer.nix
|
./nixos/programs/gamer.nix
|
||||||
./nixos/programs/personal.nix
|
./nixos/programs/personal.nix
|
||||||
./nixos/workstation.nix
|
./nixos/workstation.nix
|
||||||
];
|
];
|
||||||
home-modules = [
|
home-modules = [
|
||||||
./home/workstation.nix
|
|
||||||
./home/desktop/hyprland/.
|
|
||||||
./home/programs/graphical.nix
|
./home/programs/graphical.nix
|
||||||
./home/programs/gamer.nix
|
./home/programs/gamer.nix
|
||||||
./home/programs/personal/.
|
./home/programs/personal/.
|
||||||
|
|
@ -51,11 +50,10 @@
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
./hardware/fcs-tristan-nixbook.nix
|
./hardware/fcs-tristan-nixbook.nix
|
||||||
(auto-login "Hyprland")
|
(auto-login "Hyprland")
|
||||||
|
./nixos/hyprland.nix
|
||||||
./nixos/modules/work.nix
|
./nixos/modules/work.nix
|
||||||
./nixos/workstation.nix
|
|
||||||
];
|
];
|
||||||
home-modules = [
|
home-modules = [
|
||||||
./home/workstation.nix
|
|
||||||
./home/desktop/hyprland/.
|
./home/desktop/hyprland/.
|
||||||
./home/programs/work.nix
|
./home/programs/work.nix
|
||||||
./home/programs/graphical.nix
|
./home/programs/graphical.nix
|
||||||
|
|
@ -129,11 +127,7 @@
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
./hardware/vm.nix
|
./hardware/vm.nix
|
||||||
(auto-login "Hyprland")
|
(auto-login "Hyprland")
|
||||||
./nixos/workstation.nix
|
./nixos/programs/hyprland.nix
|
||||||
];
|
|
||||||
home-modules = [
|
|
||||||
./home/desktop/hyprland/.
|
|
||||||
./home/workstation.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
./programs/git.nix
|
./programs/git.nix
|
||||||
./programs/lf/.
|
./programs/lf/.
|
||||||
./programs/zsh.nix
|
./programs/zsh.nix
|
||||||
|
./programs/tmux.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../utils/waybar.nix)
|
(import ../utils/waybar.nix)
|
||||||
(import ../utils/display.nix)
|
(import ../utils/display.nix)
|
||||||
|
../../workstation.nix
|
||||||
];
|
];
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@
|
||||||
terminal = config.programs.terminal;
|
terminal = config.programs.terminal;
|
||||||
termcmd = "${terminal}/bin/${terminal.pname}";
|
termcmd = "${terminal}/bin/${terminal.pname}";
|
||||||
menucmd = config.programs.menu.drunCommand;
|
menucmd = config.programs.menu.drunCommand;
|
||||||
|
inherit (lib) mkPackageOption mkOption;
|
||||||
in {
|
in {
|
||||||
options.programs = with lib; {
|
options.programs = {
|
||||||
menu = {
|
menu = {
|
||||||
package = mkPackageOption pkgs "wofi" {
|
package = mkPackageOption pkgs "wofi" {
|
||||||
example = "pkgs.dmenu-wayland";
|
example = "pkgs.dmenu-wayland";
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
brave
|
brave
|
||||||
vieb
|
vieb
|
||||||
bitwarden
|
bitwarden
|
||||||
logseq
|
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.mimeApps.defaultApplications = {
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
project = "\${workspaceFolder}";
|
project = "\${workspaceFolder}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
43
home/programs/tmux.nix
Normal file
43
home/programs/tmux.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
baseIndex = 1;
|
||||||
|
escapeTime = 0;
|
||||||
|
keyMode = "vi";
|
||||||
|
mouse = true;
|
||||||
|
terminal = "screen-256color";
|
||||||
|
historyLimit = 5000;
|
||||||
|
extraConfig = ''
|
||||||
|
bind -n M-s split-window -v
|
||||||
|
bind -n M-v split-window -h
|
||||||
|
bind -n M-Enter split-window -h
|
||||||
|
bind -n M-h select-pane -L
|
||||||
|
bind -n M-j select-pane -D
|
||||||
|
bind -n M-k select-pane -U
|
||||||
|
bind -n M-l select-pane -R
|
||||||
|
bind -n M-q kill-pane
|
||||||
|
bind -n M-< resize-pane -L 10
|
||||||
|
bind -n M-> resize-pane -R 10
|
||||||
|
bind -n M-- resize-pane -D 10
|
||||||
|
bind -n M-+ resize-pane -U 10
|
||||||
|
bind -n M-z resize-pane -Z
|
||||||
|
bind -n M-u copy-mode
|
||||||
|
bind -n M-p paste-buffer
|
||||||
|
bind -n M-n next-window
|
||||||
|
|
||||||
|
set-option -g renumber-windows on
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# programs.kitty = {
|
||||||
|
# enable = true;
|
||||||
|
# keybindings = {
|
||||||
|
# "alt+h" = "neighboring_window left";
|
||||||
|
# "alt+l" = "neighboring_window right";
|
||||||
|
# "alt+j" = "neighboring_window down";
|
||||||
|
# "alt+k" = "neighboring_window up";
|
||||||
|
# "alt+enter" = "new_window";
|
||||||
|
# };
|
||||||
|
# shellIntegration.enableZshIntegration = true;
|
||||||
|
# };
|
||||||
|
}
|
||||||
|
|
@ -121,10 +121,6 @@
|
||||||
|
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
which-key.enable = true;
|
which-key.enable = true;
|
||||||
toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
settings = {open_mapping = "[[<c-`>]]";};
|
|
||||||
};
|
|
||||||
|
|
||||||
dap = {
|
dap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
}: let
|
}: let
|
||||||
user = config.user;
|
user = config.user;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/podman.nix
|
./modules/podman.nix
|
||||||
];
|
];
|
||||||
|
|
@ -99,44 +98,6 @@ in {
|
||||||
sops
|
sops
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.tmux.enable = true;
|
|
||||||
programs.tmux.extraConfig = ''
|
|
||||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
|
||||||
|
|
||||||
set escape-time 0
|
|
||||||
|
|
||||||
bind -n M-s split-window -v
|
|
||||||
bind -n M-v split-window -h
|
|
||||||
bind -n M-Enter split-window -h
|
|
||||||
bind -n M-h select-pane -L
|
|
||||||
bind -n M-j select-pane -D
|
|
||||||
bind -n M-k select-pane -U
|
|
||||||
bind -n M-l select-pane -R
|
|
||||||
bind -n M-q kill-pane
|
|
||||||
bind -n M-< resize-pane -L 10
|
|
||||||
bind -n M-> resize-pane -R 10
|
|
||||||
bind -n M-- resize-pane -D 10
|
|
||||||
bind -n M-+ resize-pane -U 10
|
|
||||||
bind -n M-z resize-pane -Z
|
|
||||||
bind -n M-u copy-mode
|
|
||||||
bind -n M-p paste-buffer
|
|
||||||
bind -n M-n next-window
|
|
||||||
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
|
||||||
|
|
||||||
set -g mouse on
|
|
||||||
|
|
||||||
set -g base-index 1
|
|
||||||
set -g pane-base-index 1
|
|
||||||
set-window-option -g pane-base-index 1
|
|
||||||
set-option -g renumber-windows on
|
|
||||||
|
|
||||||
bind -n "M-`" break-pane -d
|
|
||||||
bind -n "M-`" break-pane -d
|
|
||||||
'';
|
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_unprivileged_port_start" = 53;
|
"net.ipv4.ip_unprivileged_port_start" = 53;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
13
nixos/programs/hyprland.nix
Normal file
13
nixos/programs/hyprland.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{config, ...}: {
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
security.pam.services.hyprlock = {};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./pipewire.nix
|
||||||
|
../workstation.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.${config.user}.imports = [
|
||||||
|
../../home/desktop/hyprland/.
|
||||||
|
];
|
||||||
|
}
|
||||||
15
nixos/programs/pipewire.nix
Normal file
15
nixos/programs/pipewire.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
# pipewire raop
|
||||||
|
networking.firewall.allowedUDPPorts = [6002 6001];
|
||||||
|
# network streaming
|
||||||
|
networking.firewall.allowedTCPPorts = [4713];
|
||||||
|
}
|
||||||
|
|
@ -7,29 +7,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"electron-27.3.11"
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
|
||||||
|
|
||||||
# use pipewire
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
};
|
|
||||||
# pipewire raop
|
|
||||||
networking.firewall.allowedUDPPorts = [6002 6001];
|
|
||||||
# network streaming
|
|
||||||
networking.firewall.allowedTCPPorts = [4713];
|
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
|
||||||
security.pam.services.hyprlock = {};
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
description = "polkit-gnome-authentication-agent-1";
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue