Run nix fmt
This commit is contained in:
parent
df9449315d
commit
c22aee3927
233
flake.nix
233
flake.nix
|
|
@ -1,113 +1,130 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
vicinae.url = "github:vicinaehq/vicinae";
|
vicinae.url = "github:vicinaehq/vicinae";
|
||||||
worktimer = {
|
worktimer = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
||||||
ref = "cli";
|
ref = "cli";
|
||||||
};
|
};
|
||||||
astal = {
|
astal = {
|
||||||
url = "github:aylur/astal";
|
url = "github:aylur/astal";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
|
|
||||||
ags = {
|
|
||||||
url = "github:aylur/ags";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.astal.follows = "astal";
|
|
||||||
};
|
|
||||||
nixos-06cb-009a-fingerprint-sensor = {
|
|
||||||
url = "github:ahbnr/nixos-06cb-009a-fingerprint-sensor?ref=24.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, nur, nixos-06cb-009a-fingerprint-sensor, ... }@inputs:
|
ags = {
|
||||||
let
|
url = "github:aylur/ags";
|
||||||
system = "x86_64-linux";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
inputs.astal.follows = "astal";
|
||||||
commonModules = host: user: [
|
};
|
||||||
./hosts/${host}/hardware-configuration.nix
|
nixos-06cb-009a-fingerprint-sensor = {
|
||||||
{ nixpkgs.overlays = [
|
url = "github:ahbnr/nixos-06cb-009a-fingerprint-sensor?ref=24.11";
|
||||||
nur.overlays.default
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
(self: super: { utillinux = super.util-linux; })
|
};
|
||||||
]; }
|
};
|
||||||
{
|
|
||||||
networking.hostName = host;
|
outputs = {
|
||||||
time.timeZone = "Asia/Bangkok";
|
nixpkgs,
|
||||||
nix.settings = {
|
home-manager,
|
||||||
substituters = [
|
nur,
|
||||||
"https://nix-community.cachix.org"
|
nixos-06cb-009a-fingerprint-sensor,
|
||||||
"https://cuda-maintainers.cachix.org"
|
...
|
||||||
"https://vicinae.cachix.org"
|
} @ inputs: let
|
||||||
];
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||||
trusted-public-keys = [
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
system = builtins.currentSystem;
|
||||||
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
|
commonModules = host: user: [
|
||||||
];
|
./hosts/${host}/hardware-configuration.nix
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
{
|
||||||
trusted-users = [ "root" user ];
|
nixpkgs.overlays = [
|
||||||
auto-optimise-store = true;
|
nur.overlays.default
|
||||||
};
|
(self: super: {utillinux = super.util-linux;})
|
||||||
users.users.${user} = {
|
];
|
||||||
isNormalUser = true;
|
}
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
{
|
||||||
openssh.authorizedKeys.keys = [
|
networking.hostName = host;
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAa3tMzSCRuprEACrBsKI0F/o73o6J9L1qR3TaZn/N8 user@Kell"
|
time.timeZone = "Asia/Bangkok";
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByLwLAdJbmoDV5sx4hg5NbzKbOh1GmWEhDOUJ1GQBhK user@Riva"
|
nix.settings = {
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxMq4kubz4wWr4S8xU3GRkPcn6XRS3y7IP+qylN5QAp user@Aloria"
|
substituters = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOAhFTJI49o+eS1kHs5XRrpCLLuhAE+JUCffusudyR88 user@Arendia"
|
"https://nix-community.cachix.org"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHtzTFdvLEvXpv69qAWLTipl4hgsKgRrRrWJRecsFthG user@Arch"
|
"https://cuda-maintainers.cachix.org"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOxtJRtlAphl8euicVUR/6C7o+tyhpYmcbMBLHnldEIX server@mallorea"
|
"https://vicinae.cachix.org"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILazQU/Y9I5PkMZoG/Lzc6mDR7s+aRHzqJoFUhYSse4P PocoF1"
|
];
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOetfiPyIQ8hbU4t87E0ZrgLqFW9YW09+MNNiusXwW0C user@Asturia"
|
trusted-public-keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFoUYcVMsDw6tmjfdOuQkwaXx8fohKJs/6/5HoLzTP6x Tablet"
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
||||||
shell = pkgs.zsh;
|
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
|
||||||
};
|
];
|
||||||
system.stateVersion = "23.11";
|
experimental-features = ["nix-command" "flakes"];
|
||||||
}
|
trusted-users = ["root" user];
|
||||||
home-manager.nixosModules.home-manager
|
auto-optimise-store = true;
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users.${user} = { imports = [ ./home/${host}.nix ]; };
|
|
||||||
backupFileExtension = "bak";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
./hosts/${host}
|
|
||||||
];
|
|
||||||
mkSystem = host: cfg:
|
|
||||||
let
|
|
||||||
system = cfg.system or "x86_64-linux";
|
|
||||||
in
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
modules = (commonModules host cfg.user) ++ (cfg.modules or [ ]) ++ [
|
|
||||||
{ nixpkgs.hostPlatform = system; }
|
|
||||||
];
|
|
||||||
specialArgs = inputs;
|
|
||||||
};
|
|
||||||
systems = {
|
|
||||||
Riva = { user = "user"; };
|
|
||||||
Kell = { user = "user"; };
|
|
||||||
Aloria = { user = "user"; };
|
|
||||||
Arendia = { user = "user"; modules = [
|
|
||||||
nixos-06cb-009a-fingerprint-sensor.nixosModules."06cb-009a-fingerprint-sensor"
|
|
||||||
];};
|
|
||||||
Asturia = { user = "user"; };
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems;
|
|
||||||
};
|
};
|
||||||
|
users.users.${user} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["wheel"]; # Enable ‘sudo’ for the user.
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAa3tMzSCRuprEACrBsKI0F/o73o6J9L1qR3TaZn/N8 user@Kell"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByLwLAdJbmoDV5sx4hg5NbzKbOh1GmWEhDOUJ1GQBhK user@Riva"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxMq4kubz4wWr4S8xU3GRkPcn6XRS3y7IP+qylN5QAp user@Aloria"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOAhFTJI49o+eS1kHs5XRrpCLLuhAE+JUCffusudyR88 user@Arendia"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHtzTFdvLEvXpv69qAWLTipl4hgsKgRrRrWJRecsFthG user@Arch"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOxtJRtlAphl8euicVUR/6C7o+tyhpYmcbMBLHnldEIX server@mallorea"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILazQU/Y9I5PkMZoG/Lzc6mDR7s+aRHzqJoFUhYSse4P PocoF1"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOetfiPyIQ8hbU4t87E0ZrgLqFW9YW09+MNNiusXwW0C user@Asturia"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFoUYcVMsDw6tmjfdOuQkwaXx8fohKJs/6/5HoLzTP6x Tablet"
|
||||||
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
}
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = {inherit inputs;};
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users.${user} = {imports = [./home/${host}.nix];};
|
||||||
|
backupFileExtension = "bak";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
./hosts/${host}
|
||||||
|
];
|
||||||
|
mkSystem = host: cfg: let
|
||||||
|
system = cfg.system or "x86_64-linux";
|
||||||
|
in
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
modules =
|
||||||
|
(commonModules host cfg.user)
|
||||||
|
++ (cfg.modules or [])
|
||||||
|
++ [
|
||||||
|
{nixpkgs.hostPlatform = system;}
|
||||||
|
];
|
||||||
|
specialArgs = inputs;
|
||||||
|
};
|
||||||
|
systems = {
|
||||||
|
Riva = {user = "user";};
|
||||||
|
Kell = {user = "user";};
|
||||||
|
Aloria = {user = "user";};
|
||||||
|
Arendia = {
|
||||||
|
user = "user";
|
||||||
|
modules = [
|
||||||
|
nixos-06cb-009a-fingerprint-sensor.nixosModules."06cb-009a-fingerprint-sensor"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
Asturia = {user = "user";};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems;
|
||||||
|
formatter = forAllSystems (
|
||||||
|
system:
|
||||||
|
nixpkgs.legacyPackages.${system}.alejandra
|
||||||
|
);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
101
home/Aloria.nix
101
home/Aloria.nix
|
|
@ -1,55 +1,58 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
fzgo_paths = {
|
|
||||||
files = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
];
|
|
||||||
dirs = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/Storage/TrackBox"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
config,
|
||||||
(import ./utils/fzgo_links.nix { inherit config pkgs fzgo_paths; })
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
fzgo_paths = {
|
||||||
|
files = [
|
||||||
|
"/home/user/.dotfiles"
|
||||||
];
|
];
|
||||||
|
dirs = [
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519";
|
"/home/user/.dotfiles"
|
||||||
|
"/Storage/TrackBox"
|
||||||
home.packages = with pkgs; [
|
|
||||||
jetbrains.pycharm
|
|
||||||
rclone
|
|
||||||
opencode
|
|
||||||
# zed-editor
|
|
||||||
google-cloud-sdk
|
|
||||||
distrobox
|
|
||||||
gnome-disk-utility
|
|
||||||
moonlight-qt
|
|
||||||
vscode
|
|
||||||
texliveFull
|
|
||||||
gnome-power-manager
|
|
||||||
discord
|
|
||||||
smile
|
|
||||||
podman-compose
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
(import ./utils/desktop.nix {inherit inputs config pkgs;})
|
||||||
|
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519";
|
||||||
monitor = [
|
|
||||||
"eDP-1,2880x1800@120.00Hz,480x0,1.2,vrr,1"
|
|
||||||
"HDMI-A-1,3840x2160@60.00Hz,0x-2160,1"
|
|
||||||
"DP-3,1920x1080,3840x-540,1"
|
|
||||||
"DP-1,1920x1080,3840x-540,1"
|
|
||||||
];
|
|
||||||
bind = [
|
|
||||||
", XF86PowerOff, exec, ${pkgs.rofi}/bin/rofi -show power-menu -modi power-menu:${
|
|
||||||
./hyprland/files/rofi-power-menu.sh
|
|
||||||
}"
|
|
||||||
];
|
|
||||||
general.gaps_out = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.alacritty.settings.font.size = 13;
|
home.packages = with pkgs; [
|
||||||
programs.kitty.font.size = 13;
|
jetbrains.pycharm
|
||||||
|
rclone
|
||||||
|
opencode
|
||||||
|
# zed-editor
|
||||||
|
google-cloud-sdk
|
||||||
|
distrobox
|
||||||
|
gnome-disk-utility
|
||||||
|
moonlight-qt
|
||||||
|
vscode
|
||||||
|
texliveFull
|
||||||
|
gnome-power-manager
|
||||||
|
discord
|
||||||
|
smile
|
||||||
|
podman-compose
|
||||||
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"eDP-1,2880x1800@120.00Hz,480x0,1.2,vrr,1"
|
||||||
|
"HDMI-A-1,3840x2160@60.00Hz,0x-2160,1"
|
||||||
|
"DP-3,1920x1080,3840x-540,1"
|
||||||
|
"DP-1,1920x1080,3840x-540,1"
|
||||||
|
];
|
||||||
|
bind = [
|
||||||
|
", XF86PowerOff, exec, ${pkgs.rofi}/bin/rofi -show power-menu -modi power-menu:${
|
||||||
|
./hyprland/files/rofi-power-menu.sh
|
||||||
|
}"
|
||||||
|
];
|
||||||
|
general.gaps_out = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.alacritty.settings.font.size = 13;
|
||||||
|
programs.kitty.font.size = 13;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
103
home/Arendia.nix
103
home/Arendia.nix
|
|
@ -1,58 +1,61 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
fzgo_paths = {
|
|
||||||
files = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
];
|
|
||||||
dirs = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/Storage/TrackBox/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
config,
|
||||||
(import ./utils/fzgo_links.nix { inherit config pkgs fzgo_paths; })
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
fzgo_paths = {
|
||||||
|
files = [
|
||||||
|
"/home/user/.dotfiles"
|
||||||
];
|
];
|
||||||
|
dirs = [
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Arendia/id_ed25519";
|
"/home/user/.dotfiles"
|
||||||
|
"/Storage/TrackBox/"
|
||||||
home.packages = with pkgs; [
|
|
||||||
distrobox
|
|
||||||
gnome-disk-utility
|
|
||||||
moonlight-qt
|
|
||||||
vscode
|
|
||||||
texliveFull
|
|
||||||
gnome-power-manager
|
|
||||||
# jetbrains.pycharm-professional
|
|
||||||
discord
|
|
||||||
smile
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
(import ./utils/desktop.nix {inherit inputs config pkgs;})
|
||||||
|
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
|
||||||
|
];
|
||||||
|
|
||||||
services.hyprpaper = {
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Arendia/id_ed25519";
|
||||||
settings = {
|
|
||||||
wallpaper = [
|
home.packages = with pkgs; [
|
||||||
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
distrobox
|
||||||
"eDP-1,${./hyprland/files/wallpaper.png}"
|
gnome-disk-utility
|
||||||
];
|
moonlight-qt
|
||||||
};
|
vscode
|
||||||
|
texliveFull
|
||||||
|
gnome-power-manager
|
||||||
|
# jetbrains.pycharm-professional
|
||||||
|
discord
|
||||||
|
smile
|
||||||
|
];
|
||||||
|
|
||||||
|
services.hyprpaper = {
|
||||||
|
settings = {
|
||||||
|
wallpaper = [
|
||||||
|
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
||||||
|
"eDP-1,${./hyprland/files/wallpaper.png}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
"eDP-1,2560x1440@60.01,0x0,1"
|
"eDP-1,2560x1440@60.01,0x0,1"
|
||||||
"HDMI-A-1,1920x1080@60,0x-1080,1"
|
"HDMI-A-1,1920x1080@60,0x-1080,1"
|
||||||
];
|
];
|
||||||
bind = [
|
bind = [
|
||||||
", XF86PowerOff, exec, ${pkgs.rofi}/bin/rofi -show power-menu -modi power-menu:${
|
", XF86PowerOff, exec, ${pkgs.rofi}/bin/rofi -show power-menu -modi power-menu:${
|
||||||
./hyprland/files/rofi-power-menu.sh
|
./hyprland/files/rofi-power-menu.sh
|
||||||
}"
|
}"
|
||||||
];
|
];
|
||||||
general.gaps_out = 1;
|
general.gaps_out = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.alacritty.settings.font.size = 13;
|
programs.alacritty.settings.font.size = 13;
|
||||||
programs.kitty.font.size = 15;
|
programs.kitty.font.size = 15;
|
||||||
programs.foot.settings.main.font = pkgs.lib.mkForce "DejaVu Sans Mono:size=15";
|
programs.foot.settings.main.font = pkgs.lib.mkForce "DejaVu Sans Mono:size=15";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
53
home/Arm.nix
53
home/Arm.nix
|
|
@ -1,30 +1,33 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
inputs,
|
||||||
in
|
config,
|
||||||
{
|
pkgs,
|
||||||
home.username = "ubuntu";
|
...
|
||||||
home.homeDirectory = "/home/ubuntu";
|
}: let
|
||||||
nix = {
|
in {
|
||||||
package = pkgs.nix;
|
home.username = "ubuntu";
|
||||||
settings.use-xdg-base-directories = true;
|
home.homeDirectory = "/home/ubuntu";
|
||||||
};
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings.use-xdg-base-directories = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
./ssh
|
./ssh
|
||||||
];
|
];
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/ubuntu/.secrets/SSH/Arm/id_ed25519";
|
programs.ssh.matchBlocks."*".identityFile = "/home/ubuntu/.secrets/SSH/Arm/id_ed25519";
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
XDG_RUNTIME_DIR = "/run/ubuntu/$(id -u)";
|
XDG_RUNTIME_DIR = "/run/ubuntu/$(id -u)";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
||||||
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
||||||
REMOTE_SEARCH_DIRS=()
|
REMOTE_SEARCH_DIRS=()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,40 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
config,
|
||||||
];
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(import ./utils/desktop.nix {inherit inputs config pkgs;})
|
||||||
|
];
|
||||||
|
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Asturia/id_ed25519";
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Asturia/id_ed25519";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
distrobox
|
distrobox
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
jq
|
jq
|
||||||
evince
|
evince
|
||||||
|
];
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
"$mainMod" = pkgs.lib.mkForce "ALT_L";
|
||||||
|
"$altMod" = pkgs.lib.mkForce "SUPER";
|
||||||
|
monitor = [
|
||||||
|
"Virtual-1,1920x1080@60,0x0,1"
|
||||||
|
"DP-1,1920x1080@60,0x0,1"
|
||||||
|
"HDMI-A-1,1920x1080@60,0x0,1"
|
||||||
];
|
];
|
||||||
wayland.windowManager.hyprland.settings = {
|
general.gaps_out = 1;
|
||||||
"$mainMod" = pkgs.lib.mkForce "ALT_L";
|
};
|
||||||
"$altMod" = pkgs.lib.mkForce "SUPER";
|
services.hyprpaper = {
|
||||||
monitor = [
|
settings = {
|
||||||
"Virtual-1,1920x1080@60,0x0,1"
|
wallpaper = [
|
||||||
"DP-1,1920x1080@60,0x0,1"
|
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
||||||
"HDMI-A-1,1920x1080@60,0x0,1"
|
"DP-1,${./hyprland/files/wallpaper.png}"
|
||||||
];
|
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
||||||
general.gaps_out = 1;
|
];
|
||||||
};
|
};
|
||||||
services.hyprpaper = {
|
};
|
||||||
settings = {
|
programs.alacritty.settings.font.size = 12;
|
||||||
wallpaper = [
|
programs.kitty.font.size = 12;
|
||||||
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
"DP-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.alacritty.settings.font.size = 12;
|
|
||||||
programs.kitty.font.size = 12;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
home.username = "user";
|
inputs,
|
||||||
home.homeDirectory = "/home/user";
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.username = "user";
|
||||||
|
home.homeDirectory = "/home/user";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
103
home/Kell.nix
103
home/Kell.nix
|
|
@ -1,57 +1,60 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
fzgo_paths = {
|
|
||||||
files = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/home/server/.cache/fzgo/entries/f/|home|user|Workspace"
|
|
||||||
];
|
|
||||||
dirs = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|user|Workspace"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
config,
|
||||||
(import ./utils/fzgo_links.nix { inherit config pkgs fzgo_paths; })
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
fzgo_paths = {
|
||||||
|
files = [
|
||||||
|
"/home/user/.dotfiles"
|
||||||
|
"/home/server/.cache/fzgo/entries/f/|home|user|Workspace"
|
||||||
];
|
];
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Kell/id_ed25519";
|
dirs = [
|
||||||
|
"/home/user/.dotfiles"
|
||||||
dconf.settings = {
|
"/home/server/.cache/fzgo/entries/d/|home|user|Workspace"
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
|
||||||
autoconnect = ["qemu:///system"];
|
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
|
||||||
uris = ["qemu:///system"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
distrobox
|
|
||||||
gnome-disk-utility
|
|
||||||
moonlight-qt
|
|
||||||
vscode
|
|
||||||
jetbrains.rider
|
|
||||||
discord
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
(import ./utils/desktop.nix {inherit inputs config pkgs;})
|
||||||
|
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
|
||||||
|
];
|
||||||
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Kell/id_ed25519";
|
||||||
|
|
||||||
services.hyprpaper = {
|
dconf.settings = {
|
||||||
settings = {
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
wallpaper = [
|
autoconnect = ["qemu:///system"];
|
||||||
"DP-1,${./hyprland/files/wallpaper.png}"
|
uris = ["qemu:///system"];
|
||||||
"DP-2,${./hyprland/files/wallpaper.png}"
|
|
||||||
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
wayland.windowManager.hyprland.settings = {
|
};
|
||||||
monitor = [
|
|
||||||
"DP-2,preferred,0x550,1"
|
home.packages = with pkgs; [
|
||||||
"DP-1,preferred,1920x0,1"
|
distrobox
|
||||||
"HDMI-A-1,preferred,5760x550,1"
|
gnome-disk-utility
|
||||||
];
|
moonlight-qt
|
||||||
input.kb_options = "compose:rctrl, caps:super, altwin:swap_alt_win";
|
vscode
|
||||||
# input.kb_options = "compose:rctrl, caps:super";
|
jetbrains.rider
|
||||||
|
discord
|
||||||
|
];
|
||||||
|
|
||||||
|
services.hyprpaper = {
|
||||||
|
settings = {
|
||||||
|
wallpaper = [
|
||||||
|
"DP-1,${./hyprland/files/wallpaper.png}"
|
||||||
|
"DP-2,${./hyprland/files/wallpaper.png}"
|
||||||
|
"HDMI-A-1,${./hyprland/files/wallpaper.png}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"DP-2,preferred,0x550,1"
|
||||||
|
"DP-1,preferred,1920x0,1"
|
||||||
|
"HDMI-A-1,preferred,5760x550,1"
|
||||||
|
];
|
||||||
|
input.kb_options = "compose:rctrl, caps:super, altwin:swap_alt_win";
|
||||||
|
# input.kb_options = "compose:rctrl, caps:super";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,97 +1,101 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
inputs,
|
||||||
username = "server";
|
config,
|
||||||
home_dir = "/home/${username}";
|
pkgs,
|
||||||
scripts = {
|
...
|
||||||
disk_check = import ./utils/disk_check.nix { inherit pkgs; };
|
}: let
|
||||||
# vdirsyncer = {
|
username = "server";
|
||||||
# when = "*:0/15";
|
home_dir = "/home/${username}";
|
||||||
# script = toString (pkgs.writeShellScript "script" '' ${pkgs.vdirsyncer}/bin/vdirsyncer sync imec/pair '');
|
scripts = {
|
||||||
# };
|
disk_check = import ./utils/disk_check.nix {inherit pkgs;};
|
||||||
fzgo = {
|
# vdirsyncer = {
|
||||||
when = "*:0/5";
|
# when = "*:0/15";
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
# script = toString (pkgs.writeShellScript "script" '' ${pkgs.vdirsyncer}/bin/vdirsyncer sync imec/pair '');
|
||||||
${pkgs.zsh}/bin/zsh -c "source ${./zsh/files/fzgo.zsh} && fzgo_update_cache"
|
# };
|
||||||
'');
|
fzgo = {
|
||||||
};
|
when = "*:0/5";
|
||||||
mbsync = {
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
when = "*-*-* 00:00:00";
|
${pkgs.zsh}/bin/zsh -c "source ${./zsh/files/fzgo.zsh} && fzgo_update_cache"
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
'');
|
||||||
BASEDIR=/home/server/Containers/mbsync
|
|
||||||
# python3 $BASEDIR/config/oauth2/mutt_oauth2.py $BASEDIR/data/oauth2/credentials.json
|
|
||||||
docker exec --user "1000:1000" mbsync-container /home/user/.config/mbsync/run.sh -a
|
|
||||||
${pkgs.notmuch}/bin/notmuch new
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
# sync_vault = {
|
|
||||||
# when = "*-*-* 02:00:00";
|
|
||||||
# script = toString (pkgs.writeShellScript "script" ''
|
|
||||||
# source $HOME/.secrets/Backup/env.sh
|
|
||||||
# for _ in {1..2}; do
|
|
||||||
# OUTPUT=$(echo "$ZFS_PASSPHRASE" | ssh 10.4.0.1 zfs load-key Vault/Thomas/Encrypted 2>&1);
|
|
||||||
# if [ "$OUTPUT" == "Key load error: Key already loaded for 'Vault/Thomas/Encrypted'." ]; then
|
|
||||||
# echo "Key successfully loaded, starting syncoid"
|
|
||||||
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Thomas/Workspace 10.4.0.1:Vault/Thomas/Encrypted/Storage/Workspace
|
|
||||||
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Thomas 10.4.0.1:Vault/Thomas/Encrypted/Storage/T
|
|
||||||
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Emily 10.4.0.1:Vault/Thomas/Encrypted/Storage/N
|
|
||||||
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Yolande 10.4.0.1:Vault/Thomas/Encrypted/Storage/Y
|
|
||||||
# syncoid --no-privilege-elevation --no-sync-snap tank/Containers 10.4.0.1:Vault/Thomas/Encrypted/Containers
|
|
||||||
# ssh 10.4.0.1 zfs unload-key Vault/Thomas/Encrypted
|
|
||||||
# ${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/s39pIIrB0R
|
|
||||||
# exit 0
|
|
||||||
# fi
|
|
||||||
# done
|
|
||||||
#
|
|
||||||
# echo "Found output instead: $OUTPUT"
|
|
||||||
# echo "Failed to load key: $OUTPUT" | sendmail
|
|
||||||
# exit 1
|
|
||||||
# '');
|
|
||||||
# };
|
|
||||||
backup = {
|
|
||||||
when = "*-*-* 04:00:00";
|
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
|
||||||
${./scripts/files/backup.sh}
|
|
||||||
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/R6iJcWqGp0
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
fzgo_paths = {
|
mbsync = {
|
||||||
files = [
|
when = "*-*-* 00:00:00";
|
||||||
"/home/user/Workspace"
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
"${home_dir}/.dotfiles"
|
BASEDIR=/home/server/Containers/mbsync
|
||||||
];
|
# python3 $BASEDIR/config/oauth2/mutt_oauth2.py $BASEDIR/data/oauth2/credentials.json
|
||||||
dirs = [
|
docker exec --user "1000:1000" mbsync-container /home/user/.config/mbsync/run.sh -a
|
||||||
"/home/user/Workspace"
|
${pkgs.notmuch}/bin/notmuch new
|
||||||
"${home_dir}/.dotfiles"
|
'');
|
||||||
"${home_dir}/Containers"
|
|
||||||
"${home_dir}/Storage/Thomas"
|
|
||||||
"${home_dir}/Storage/Shared"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
in {
|
# sync_vault = {
|
||||||
home.username = username;
|
# when = "*-*-* 02:00:00";
|
||||||
home.homeDirectory = home_dir;
|
# script = toString (pkgs.writeShellScript "script" ''
|
||||||
nix = {
|
# source $HOME/.secrets/Backup/env.sh
|
||||||
package = pkgs.nix;
|
# for _ in {1..2}; do
|
||||||
settings = {
|
# OUTPUT=$(echo "$ZFS_PASSPHRASE" | ssh 10.4.0.1 zfs load-key Vault/Thomas/Encrypted 2>&1);
|
||||||
trusted-users = [ username ];
|
# if [ "$OUTPUT" == "Key load error: Key already loaded for 'Vault/Thomas/Encrypted'." ]; then
|
||||||
use-xdg-base-directories = true;
|
# echo "Key successfully loaded, starting syncoid"
|
||||||
};
|
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Thomas/Workspace 10.4.0.1:Vault/Thomas/Encrypted/Storage/Workspace
|
||||||
|
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Thomas 10.4.0.1:Vault/Thomas/Encrypted/Storage/T
|
||||||
|
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Emily 10.4.0.1:Vault/Thomas/Encrypted/Storage/N
|
||||||
|
# syncoid --no-privilege-elevation --no-sync-snap tank/Storage/Yolande 10.4.0.1:Vault/Thomas/Encrypted/Storage/Y
|
||||||
|
# syncoid --no-privilege-elevation --no-sync-snap tank/Containers 10.4.0.1:Vault/Thomas/Encrypted/Containers
|
||||||
|
# ssh 10.4.0.1 zfs unload-key Vault/Thomas/Encrypted
|
||||||
|
# ${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/s39pIIrB0R
|
||||||
|
# exit 0
|
||||||
|
# fi
|
||||||
|
# done
|
||||||
|
#
|
||||||
|
# echo "Found output instead: $OUTPUT"
|
||||||
|
# echo "Failed to load key: $OUTPUT" | sendmail
|
||||||
|
# exit 1
|
||||||
|
# '');
|
||||||
|
# };
|
||||||
|
backup = {
|
||||||
|
when = "*-*-* 04:00:00";
|
||||||
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
|
${./scripts/files/backup.sh}
|
||||||
|
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/R6iJcWqGp0
|
||||||
|
'');
|
||||||
};
|
};
|
||||||
|
};
|
||||||
xdg.enable = true;
|
fzgo_paths = {
|
||||||
|
files = [
|
||||||
imports = [
|
"/home/user/Workspace"
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
"${home_dir}/.dotfiles"
|
||||||
(import ./utils/services.nix { inherit pkgs scripts; })
|
|
||||||
(import ./utils/fzgo_links.nix { inherit config pkgs fzgo_paths; })
|
|
||||||
./ssh
|
|
||||||
];
|
];
|
||||||
programs.ssh.matchBlocks."*".identityFile = "${home_dir}/.secrets/SSH/Mallorea/id_ed25519";
|
dirs = [
|
||||||
|
"/home/user/Workspace"
|
||||||
home.sessionVariables = {
|
"${home_dir}/.dotfiles"
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
"${home_dir}/Containers"
|
||||||
LANG = "en_US.UTF-8";
|
"${home_dir}/Storage/Thomas"
|
||||||
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
"${home_dir}/Storage/Shared"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
home.username = username;
|
||||||
|
home.homeDirectory = home_dir;
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings = {
|
||||||
|
trusted-users = [username];
|
||||||
|
use-xdg-base-directories = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.enable = true;
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
|
(import ./utils/services.nix {inherit pkgs scripts;})
|
||||||
|
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
|
||||||
|
./ssh
|
||||||
|
];
|
||||||
|
programs.ssh.matchBlocks."*".identityFile = "${home_dir}/.secrets/SSH/Mallorea/id_ed25519";
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
|
LANG = "en_US.UTF-8";
|
||||||
|
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
59
home/Pi.nix
59
home/Pi.nix
|
|
@ -1,33 +1,36 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
inputs,
|
||||||
in
|
config,
|
||||||
{
|
pkgs,
|
||||||
home.username = "user";
|
...
|
||||||
home.homeDirectory = "/home/user";
|
}: let
|
||||||
nix = {
|
in {
|
||||||
package = pkgs.nix;
|
home.username = "user";
|
||||||
settings.use-xdg-base-directories = true;
|
home.homeDirectory = "/home/user";
|
||||||
};
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings.use-xdg-base-directories = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
./ssh
|
./ssh
|
||||||
];
|
];
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Pi/id_ed25519";
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Pi/id_ed25519";
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
||||||
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
||||||
REMOTE_SEARCH_DIRS=()
|
REMOTE_SEARCH_DIRS=()
|
||||||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
||||||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,46 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
fzgo_paths = {
|
|
||||||
files = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/home/server/.cache/fzgo/entries/f/|home|user|Workspace"
|
|
||||||
];
|
|
||||||
dirs = [
|
|
||||||
"/home/user/.dotfiles"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|user|Workspace"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
|
|
||||||
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./utils/fzgo_links.nix { inherit config pkgs fzgo_paths; })
|
config,
|
||||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
pkgs,
|
||||||
./ssh
|
...
|
||||||
|
}: let
|
||||||
|
fzgo_paths = {
|
||||||
|
files = [
|
||||||
|
"/home/user/.dotfiles"
|
||||||
|
"/home/server/.cache/fzgo/entries/f/|home|user|Workspace"
|
||||||
];
|
];
|
||||||
|
dirs = [
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Riva/id_ed25519";
|
"/home/user/.dotfiles"
|
||||||
|
"/home/server/.cache/fzgo/entries/d/|home|user|Workspace"
|
||||||
home.packages = with pkgs; [
|
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
|
||||||
distrobox
|
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
|
||||||
jq
|
|
||||||
rclone
|
|
||||||
];
|
];
|
||||||
services.hyprpaper = {
|
};
|
||||||
settings = {
|
in {
|
||||||
wallpaper = [
|
imports = [
|
||||||
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
(import ./utils/fzgo_links.nix {inherit config pkgs fzgo_paths;})
|
||||||
];
|
(import ./utils/desktop.nix {inherit inputs config pkgs;})
|
||||||
};
|
./ssh
|
||||||
};
|
];
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
monitor = [
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Riva/id_ed25519";
|
||||||
"Virtual-1,2560x1440,0x0,1"
|
|
||||||
];
|
home.packages = with pkgs; [
|
||||||
input.kb_options = "compose:rctrl, caps:super, altwin:swap_alt_win";
|
distrobox
|
||||||
|
jq
|
||||||
|
rclone
|
||||||
|
];
|
||||||
|
services.hyprpaper = {
|
||||||
|
settings = {
|
||||||
|
wallpaper = [
|
||||||
|
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"Virtual-1,2560x1440,0x0,1"
|
||||||
|
];
|
||||||
|
input.kb_options = "compose:rctrl, caps:super, altwin:swap_alt_win";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,43 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.username = "user";
|
inputs,
|
||||||
home.homeDirectory = "/home/user";
|
config,
|
||||||
nix = {
|
pkgs,
|
||||||
package = pkgs.nix;
|
...
|
||||||
settings = {
|
}: {
|
||||||
trusted-users = [ "user" ];
|
home.username = "user";
|
||||||
use-xdg-base-directories = true;
|
home.homeDirectory = "/home/user";
|
||||||
};
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings = {
|
||||||
|
trusted-users = ["user"];
|
||||||
|
use-xdg-base-directories = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
./alacritty
|
./alacritty
|
||||||
./ssh
|
./ssh
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Tolnedra/id_ed25519";
|
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Tolnedra/id_ed25519";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
jq
|
jq
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
||||||
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
||||||
REMOTE_SEARCH_DIRS=()
|
REMOTE_SEARCH_DIRS=()
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.alacritty.settings.window.opacity = 0.8;
|
programs.alacritty.settings.window.opacity = 0.8;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
110
home/Vault.nix
110
home/Vault.nix
|
|
@ -1,9 +1,13 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
inputs,
|
||||||
scripts = {
|
config,
|
||||||
disk_check = {
|
pkgs,
|
||||||
when = "*-*-* *:00:00";
|
...
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
}: let
|
||||||
|
scripts = {
|
||||||
|
disk_check = {
|
||||||
|
when = "*-*-* *:00:00";
|
||||||
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
REPORT_EMAIL=email@thomasave.be
|
REPORT_EMAIL=email@thomasave.be
|
||||||
ZPOOL_STATUS=$(zpool status -x)
|
ZPOOL_STATUS=$(zpool status -x)
|
||||||
if [ "$ZPOOL_STATUS" = "all pools are healthy" ] || [ "$ZPOOL_STATUS" = "no pools available" ]
|
if [ "$ZPOOL_STATUS" = "all pools are healthy" ] || [ "$ZPOOL_STATUS" = "no pools available" ]
|
||||||
|
|
@ -16,63 +20,65 @@ let
|
||||||
printf 1 > /var/db/zpool.status
|
printf 1 > /var/db/zpool.status
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
restic_etienne = {
|
restic_etienne = {
|
||||||
when = "*-*-* 01:00:00";
|
when = "*-*-* 01:00:00";
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
/Backup/Restic/Etienne/run.sh
|
/Backup/Restic/Etienne/run.sh
|
||||||
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/zGPrOi0NsJ
|
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/zGPrOi0NsJ
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
restic_magda_and_etienne = {
|
restic_magda_and_etienne = {
|
||||||
when = "*-*-* 03:00:00";
|
when = "*-*-* 03:00:00";
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
/Backup/Restic/Magda\ and\ Etienne/run.sh
|
/Backup/Restic/Magda\ and\ Etienne/run.sh
|
||||||
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/yvBuDgduDd
|
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/yvBuDgduDd
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
restic_backblaze = {
|
restic_backblaze = {
|
||||||
when = "*-*-* 02:00:00";
|
when = "*-*-* 02:00:00";
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
/Backup/Restic/BackBlaze/run.sh
|
/Backup/Restic/BackBlaze/run.sh
|
||||||
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/LVruVYTwTn
|
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/LVruVYTwTn
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
mail_sync = {
|
mail_sync = {
|
||||||
when = "*-*-* 04:00:00";
|
when = "*-*-* 04:00:00";
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
cd /home/server/Containers/Mails && docker compose up sync-etienne sync-magda
|
cd /home/server/Containers/Mails && docker compose up sync-etienne sync-magda
|
||||||
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/eEIPVGyrAx
|
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/eEIPVGyrAx
|
||||||
'');
|
'');
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home.username = "server";
|
|
||||||
home.homeDirectory = "/home/server";
|
|
||||||
nix = {
|
|
||||||
package = pkgs.nix;
|
|
||||||
settings.use-xdg-base-directories = true;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
home.username = "server";
|
||||||
|
home.homeDirectory = "/home/server";
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nix;
|
||||||
|
settings.use-xdg-base-directories = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
imports = [
|
imports = [
|
||||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
(import ./utils/common.nix {inherit inputs config pkgs;})
|
||||||
(import ./utils/services.nix { inherit pkgs; scripts = scripts; })
|
(import ./utils/services.nix {
|
||||||
./ssh
|
inherit pkgs;
|
||||||
];
|
scripts = scripts;
|
||||||
|
})
|
||||||
|
./ssh
|
||||||
|
];
|
||||||
|
|
||||||
programs.ssh.matchBlocks."*".identityFile = "/home/server/.secrets/SSH/Vault/id_ed25519";
|
programs.ssh.matchBlocks."*".identityFile = "/home/server/.secrets/SSH/Vault/id_ed25519";
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
NIX_PATH = "${config.xdg.stateHome}/nix/profiles/channels/";
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
XDG_RUNTIME_DIR = "/run/user/$(id -u)";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
programs.zsh.initContent = pkgs.lib.mkAfter ''
|
||||||
LOCAL_SEARCH_DIRS=(~/.dotfiles/ ~/Storage/Thomas/ ~/Storage/Etienne/ ~/Storage/Magda\ and\ Etienne/ ~/Containers/)
|
LOCAL_SEARCH_DIRS=(~/.dotfiles/ ~/Storage/Thomas/ ~/Storage/Etienne/ ~/Storage/Magda\ and\ Etienne/ ~/Containers/)
|
||||||
REMOTE_SEARCH_DIRS=()
|
REMOTE_SEARCH_DIRS=()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,29 @@
|
||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
# add the home manager module
|
inputs,
|
||||||
imports = [ inputs.ags.homeManagerModules.default ];
|
pkgs,
|
||||||
programs.ags = {
|
...
|
||||||
enable = true;
|
}: {
|
||||||
|
# add the home manager module
|
||||||
|
imports = [inputs.ags.homeManagerModules.default];
|
||||||
|
programs.ags = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
configDir = ./files;
|
configDir = ./files;
|
||||||
|
|
||||||
extraPackages = with inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}; [
|
extraPackages = with inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
pkgs.gtksourceview
|
pkgs.gtksourceview
|
||||||
pkgs.accountsservice
|
pkgs.accountsservice
|
||||||
pkgs.libadwaita
|
pkgs.libadwaita
|
||||||
|
|
||||||
battery
|
battery
|
||||||
hyprland
|
hyprland
|
||||||
tray
|
tray
|
||||||
powerprofiles
|
powerprofiles
|
||||||
wireplumber
|
wireplumber
|
||||||
mpris
|
mpris
|
||||||
network
|
network
|
||||||
apps
|
apps
|
||||||
notifd
|
notifd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,55 +1,55 @@
|
||||||
{
|
{
|
||||||
description = "AGS Config";
|
description = "AGS Config";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
|
||||||
ags = {
|
ags = {
|
||||||
url = "github:aylur/ags";
|
url = "github:aylur/ags";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
ags,
|
||||||
|
}: let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
extraPackages = with ags.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
|
pkgs.gtksourceview
|
||||||
|
pkgs.accountsservice
|
||||||
|
|
||||||
|
battery
|
||||||
|
hyprland
|
||||||
|
tray
|
||||||
|
powerprofiles
|
||||||
|
wireplumber
|
||||||
|
mpris
|
||||||
|
network
|
||||||
|
apps
|
||||||
|
notifd
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
packages.${system} = {
|
||||||
|
default = ags.lib.bundle {
|
||||||
|
inherit pkgs;
|
||||||
|
src = ./files;
|
||||||
|
name = "ags-bar";
|
||||||
|
entry = "app.ts";
|
||||||
|
extraPackages = extraPackages;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
devShells.${system} = {
|
||||||
self,
|
default = pkgs.mkShell {
|
||||||
nixpkgs,
|
buildInputs = [
|
||||||
ags,
|
# ags.packages.${system}.agsFull
|
||||||
}: let
|
(ags.packages.${system}.default.override {
|
||||||
system = "x86_64-linux";
|
extraPackages = extraPackages;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
})
|
||||||
extraPackages = with ags.packages.${pkgs.stdenv.hostPlatform.system}; [
|
];
|
||||||
pkgs.gtksourceview
|
};
|
||||||
pkgs.accountsservice
|
};
|
||||||
|
};
|
||||||
battery
|
|
||||||
hyprland
|
|
||||||
tray
|
|
||||||
powerprofiles
|
|
||||||
wireplumber
|
|
||||||
mpris
|
|
||||||
network
|
|
||||||
apps
|
|
||||||
notifd
|
|
||||||
];
|
|
||||||
in {
|
|
||||||
packages.${system} = {
|
|
||||||
default = ags.lib.bundle {
|
|
||||||
inherit pkgs;
|
|
||||||
src = ./files;
|
|
||||||
name = "ags-bar";
|
|
||||||
entry = "app.ts";
|
|
||||||
extraPackages = extraPackages;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.${system} = {
|
|
||||||
default = pkgs.mkShell {
|
|
||||||
buildInputs = [
|
|
||||||
# ags.packages.${system}.agsFull
|
|
||||||
(ags.packages.${system}.default.override {
|
|
||||||
extraPackages = extraPackages;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,115 +1,113 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
|
programs.alacritty = {
|
||||||
{
|
enable = true;
|
||||||
programs.alacritty = {
|
settings = {
|
||||||
enable = true;
|
scrolling.history = 10000;
|
||||||
settings = {
|
window = {
|
||||||
scrolling.history = 10000;
|
dynamic_padding = true;
|
||||||
window = {
|
dynamic_title = true;
|
||||||
dynamic_padding = true;
|
opacity = 0.3;
|
||||||
dynamic_title = true;
|
};
|
||||||
opacity = 0.3;
|
env = {
|
||||||
};
|
TERM = "xterm-256color";
|
||||||
env = {
|
};
|
||||||
TERM = "xterm-256color";
|
colors = {
|
||||||
};
|
bright = {
|
||||||
colors = {
|
black = "#555556";
|
||||||
bright = {
|
blue = "#00afff";
|
||||||
black = "#555556";
|
cyan = "#50cdfe";
|
||||||
blue = "#00afff";
|
green = "#b0e05e";
|
||||||
cyan = "#50cdfe";
|
magenta = "#af87ff";
|
||||||
green = "#b0e05e";
|
red = "#f5669c";
|
||||||
magenta = "#af87ff";
|
white = "#ffffff";
|
||||||
red = "#f5669c";
|
yellow = "#fef26c";
|
||||||
white = "#ffffff";
|
|
||||||
yellow = "#fef26c";
|
|
||||||
};
|
|
||||||
normal = {
|
|
||||||
black = "#121213";
|
|
||||||
blue = "#0f7fcf";
|
|
||||||
cyan = "#42a7cf";
|
|
||||||
green = "#97e123";
|
|
||||||
magenta = "#8700ff";
|
|
||||||
red = "#fa2573";
|
|
||||||
white = "#bbbbbb";
|
|
||||||
yellow = "#dfd460";
|
|
||||||
};
|
|
||||||
primary = {
|
|
||||||
background = "#000011";
|
|
||||||
foreground = "#F8F8F2";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
font = {
|
|
||||||
size = pkgs.lib.mkDefault 13;
|
|
||||||
normal.family = "DejaVu Sans Mono";
|
|
||||||
};
|
|
||||||
keyboard.bindings = [
|
|
||||||
{
|
|
||||||
action = "ToggleFullscreen";
|
|
||||||
key = "F11";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
action = "ToggleViMode";
|
|
||||||
key = "Escape";
|
|
||||||
mode = "Vi";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
action = "ScrollHalfPageUp";
|
|
||||||
key = "E";
|
|
||||||
mode = "Vi";
|
|
||||||
mods = "Control";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "F";
|
|
||||||
mods = "Control|Shift";
|
|
||||||
action = "ReceiveChar";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[72;6u";
|
|
||||||
key = "H";
|
|
||||||
mods = "Control|Shift";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[74;6u";
|
|
||||||
key = "J";
|
|
||||||
mods = "Control|Shift";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[75;6u";
|
|
||||||
key = "K";
|
|
||||||
mods = "Control|Shift";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[76;6u";
|
|
||||||
key = "L";
|
|
||||||
mods = "Control|Shift";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[105;5u";
|
|
||||||
key = "I";
|
|
||||||
mods = "Control";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[46;5u";
|
|
||||||
key = "Period";
|
|
||||||
mods = "Control";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[44;5u";
|
|
||||||
key = "Comma";
|
|
||||||
mods = "Control";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[59;5u";
|
|
||||||
key = "Semicolon";
|
|
||||||
mods = "Control";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
chars = "\\u001B[13;2u";
|
|
||||||
key = "Return";
|
|
||||||
mods = "Shift";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
normal = {
|
||||||
|
black = "#121213";
|
||||||
|
blue = "#0f7fcf";
|
||||||
|
cyan = "#42a7cf";
|
||||||
|
green = "#97e123";
|
||||||
|
magenta = "#8700ff";
|
||||||
|
red = "#fa2573";
|
||||||
|
white = "#bbbbbb";
|
||||||
|
yellow = "#dfd460";
|
||||||
|
};
|
||||||
|
primary = {
|
||||||
|
background = "#000011";
|
||||||
|
foreground = "#F8F8F2";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
size = pkgs.lib.mkDefault 13;
|
||||||
|
normal.family = "DejaVu Sans Mono";
|
||||||
|
};
|
||||||
|
keyboard.bindings = [
|
||||||
|
{
|
||||||
|
action = "ToggleFullscreen";
|
||||||
|
key = "F11";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "ToggleViMode";
|
||||||
|
key = "Escape";
|
||||||
|
mode = "Vi";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "ScrollHalfPageUp";
|
||||||
|
key = "E";
|
||||||
|
mode = "Vi";
|
||||||
|
mods = "Control";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "F";
|
||||||
|
mods = "Control|Shift";
|
||||||
|
action = "ReceiveChar";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[72;6u";
|
||||||
|
key = "H";
|
||||||
|
mods = "Control|Shift";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[74;6u";
|
||||||
|
key = "J";
|
||||||
|
mods = "Control|Shift";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[75;6u";
|
||||||
|
key = "K";
|
||||||
|
mods = "Control|Shift";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[76;6u";
|
||||||
|
key = "L";
|
||||||
|
mods = "Control|Shift";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[105;5u";
|
||||||
|
key = "I";
|
||||||
|
mods = "Control";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[46;5u";
|
||||||
|
key = "Period";
|
||||||
|
mods = "Control";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[44;5u";
|
||||||
|
key = "Comma";
|
||||||
|
mods = "Control";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[59;5u";
|
||||||
|
key = "Semicolon";
|
||||||
|
mods = "Control";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
chars = "\\u001B[13;2u";
|
||||||
|
key = "Return";
|
||||||
|
mods = "Shift";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,77 +1,80 @@
|
||||||
{ config, inputs, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.starship = {
|
config,
|
||||||
enable = true;
|
inputs,
|
||||||
enableBashIntegration = true;
|
pkgs,
|
||||||
enableZshIntegration = false;
|
...
|
||||||
settings = {
|
}: {
|
||||||
add_newline = false;
|
programs.starship = {
|
||||||
format = "$nix_shell$username$hostname[](bg:#0F7FCF fg:prev_bg)$directory$git_branch$git_status[](fg:prev_bg) ";
|
enable = true;
|
||||||
right_format = "";
|
enableBashIntegration = true;
|
||||||
username = {
|
enableZshIntegration = false;
|
||||||
show_always = true;
|
settings = {
|
||||||
style_user = "bg:#121213";
|
add_newline = false;
|
||||||
style_root = "bg:#EA2C38";
|
format = "$nix_shell$username$hostname[](bg:#0F7FCF fg:prev_bg)$directory$git_branch$git_status[](fg:prev_bg) ";
|
||||||
format = "[ $user]($style)";
|
right_format = "";
|
||||||
disabled = false;
|
username = {
|
||||||
};
|
show_always = true;
|
||||||
|
style_user = "bg:#121213";
|
||||||
|
style_root = "bg:#EA2C38";
|
||||||
|
format = "[ $user]($style)";
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
|
|
||||||
hostname = {
|
hostname = {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
ssh_only = false;
|
ssh_only = false;
|
||||||
format = "[@$hostname ]($style)";
|
format = "[@$hostname ]($style)";
|
||||||
style = "bg:#121213";
|
style = "bg:#121213";
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
style = "bg:#0F7FCF fg:#080808";
|
style = "bg:#0F7FCF fg:#080808";
|
||||||
format = "[ $path ]($style)";
|
format = "[ $path ]($style)";
|
||||||
truncation_length = 3;
|
truncation_length = 3;
|
||||||
truncation_symbol = ".../";
|
truncation_symbol = ".../";
|
||||||
};
|
};
|
||||||
|
|
||||||
git_branch = {
|
git_branch = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
style = "bg:#DFD460 fg:#080808";
|
style = "bg:#DFD460 fg:#080808";
|
||||||
format = "[](fg:prev_bg bg:#DFD460)[ $symbol $branch ]($style)";
|
format = "[](fg:prev_bg bg:#DFD460)[ $symbol $branch ]($style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
git_status = {
|
git_status = {
|
||||||
style = "bg:#DFD460 fg:#080808";
|
style = "bg:#DFD460 fg:#080808";
|
||||||
format = "[$all_status$ahead_behind ]($style)";
|
format = "[$all_status$ahead_behind ]($style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix_shell = {
|
nix_shell = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
style = "bg:#0F7FCF fg:#080808";
|
style = "bg:#0F7FCF fg:#080808";
|
||||||
format = "[ $symbol ]($style)[](fg:#0F7FCF bg:#121213)";
|
format = "[ $symbol ]($style)[](fg:#0F7FCF bg:#121213)";
|
||||||
disabled = false;
|
disabled = false;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
programs.bash = {
|
};
|
||||||
enable = true;
|
programs.bash = {
|
||||||
enableCompletion = true;
|
enable = true;
|
||||||
historySize = 10000000;
|
enableCompletion = true;
|
||||||
historyFile = "${config.xdg.dataHome}/bash/history";
|
historySize = 10000000;
|
||||||
initExtra = pkgs.lib.mkAfter ''
|
historyFile = "${config.xdg.dataHome}/bash/history";
|
||||||
bind 'set show-all-if-ambiguous on'
|
initExtra = pkgs.lib.mkAfter ''
|
||||||
bind 'set completion-ignore-case on'
|
bind 'set show-all-if-ambiguous on'
|
||||||
bind 'TAB:menu-complete'
|
bind 'set completion-ignore-case on'
|
||||||
bind '"\e[A": history-search-backward'
|
bind 'TAB:menu-complete'
|
||||||
bind '"\e[B": history-search-forward'
|
bind '"\e[A": history-search-backward'
|
||||||
'';
|
bind '"\e[B": history-search-forward'
|
||||||
shellAliases = {
|
'';
|
||||||
ll = "ls -lhat";
|
shellAliases = {
|
||||||
ls = "ls --color=auto";
|
ll = "ls -lhat";
|
||||||
lf = ''cd "$(${pkgs.lf}/bin/lf -print-last-dir)"'';
|
ls = "ls --color=auto";
|
||||||
wget = ''wget --hsts-file = "$XDG_DATA_HOME/wget-hsts"'';
|
lf = ''cd "$(${pkgs.lf}/bin/lf -print-last-dir)"'';
|
||||||
python = "python3";
|
wget = ''wget --hsts-file = "$XDG_DATA_HOME/wget-hsts"'';
|
||||||
vim = "nvim";
|
python = "python3";
|
||||||
v = ''nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
vim = "nvim";
|
||||||
rg = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
v = ''nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
||||||
reset = "tput reset";
|
rg = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
||||||
};
|
reset = "tput reset";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,252 +1,242 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file = {
|
config,
|
||||||
".mailcap".text =
|
pkgs,
|
||||||
"text/html; w3m -dump -o -document_charset=%{charset} %s; nametemplate=%s.html; copiousoutput";
|
...
|
||||||
};
|
}: {
|
||||||
home.packages = with pkgs; [ mailcap ];
|
home.file = {
|
||||||
|
".mailcap".text = "text/html; w3m -dump -o -document_charset=%{charset} %s; nametemplate=%s.html; copiousoutput";
|
||||||
|
};
|
||||||
|
home.packages = with pkgs; [mailcap];
|
||||||
|
|
||||||
programs.notmuch = {
|
programs.notmuch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
database = { path = "/home/server/Storage/Thomas/Mail"; };
|
database = {path = "/home/server/Storage/Thomas/Mail";};
|
||||||
user = {
|
user = {
|
||||||
name = "Thomas Avé";
|
name = "Thomas Avé";
|
||||||
primary_email = "email@thomasave.be";
|
primary_email = "email@thomasave.be";
|
||||||
other_email = "Thomas.Ave@uantwerpen.be;Thomas.Ave@imec.be;";
|
other_email = "Thomas.Ave@uantwerpen.be;Thomas.Ave@imec.be;";
|
||||||
};
|
};
|
||||||
maildir = { synchronize_flags = "true"; };
|
maildir = {synchronize_flags = "true";};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
programs.aerc = {
|
};
|
||||||
enable = true;
|
programs.aerc = {
|
||||||
extraBinds = {
|
enable = true;
|
||||||
global = {
|
extraBinds = {
|
||||||
"<C-p>" = ":menu -adc 'fzy -l 30' :cf -a<Enter>";
|
global = {
|
||||||
"<tab>" = ":next-tab<Enter>";
|
"<C-p>" = ":menu -adc 'fzy -l 30' :cf -a<Enter>";
|
||||||
"?" = ":help keys<Enter>";
|
"<tab>" = ":next-tab<Enter>";
|
||||||
"<F5>" = ":check-mail<Enter>";
|
"?" = ":help keys<Enter>";
|
||||||
};
|
"<F5>" = ":check-mail<Enter>";
|
||||||
messages = {
|
};
|
||||||
"q" = ":q<Enter>";
|
messages = {
|
||||||
"<Backspace>" = ":q<Enter>";
|
"q" = ":q<Enter>";
|
||||||
"j" = ":next<Enter>";
|
"<Backspace>" = ":q<Enter>";
|
||||||
"k" = ":prev<Enter>";
|
"j" = ":next<Enter>";
|
||||||
"<Up>" = ":prev<Enter>";
|
"k" = ":prev<Enter>";
|
||||||
"g" = ":select 0<Enter>";
|
"<Up>" = ":prev<Enter>";
|
||||||
"G" = ":select -1<Enter>";
|
"g" = ":select 0<Enter>";
|
||||||
"J" = ":next-folder<Enter>";
|
"G" = ":select -1<Enter>";
|
||||||
"K" = ":prev-folder<Enter>";
|
"J" = ":next-folder<Enter>";
|
||||||
"v" = ":mark -t<Enter>";
|
"K" = ":prev-folder<Enter>";
|
||||||
"V" = ":mark -v<Enter>";
|
"v" = ":mark -t<Enter>";
|
||||||
"<Space>" = ":read -t<Enter>";
|
"V" = ":mark -v<Enter>";
|
||||||
"T" = ":toggle-threads<Enter>";
|
"<Space>" = ":read -t<Enter>";
|
||||||
"<Enter>" = ":view<Enter>";
|
"T" = ":toggle-threads<Enter>";
|
||||||
"d" = ":prompt 'Really delete this message?' 'delete-message'<Enter>";
|
"<Enter>" = ":view<Enter>";
|
||||||
"D" = ":delete<Enter>";
|
"d" = ":prompt 'Really delete this message?' 'delete-message'<Enter>";
|
||||||
"a" = ":archive flat<Enter>";
|
"D" = ":delete<Enter>";
|
||||||
"A" = ":unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>";
|
"a" = ":archive flat<Enter>";
|
||||||
"f" = ":flag -t<Enter>";
|
"A" = ":unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>";
|
||||||
"m" = ":compose<Enter>";
|
"f" = ":flag -t<Enter>";
|
||||||
"rr" = ":reply -a<Enter>";
|
"m" = ":compose<Enter>";
|
||||||
"rq" = ":reply -aq<Enter>";
|
"rr" = ":reply -a<Enter>";
|
||||||
"Rr" = ":reply<Enter>";
|
"rq" = ":reply -aq<Enter>";
|
||||||
"Rq" = ":reply -q<Enter>";
|
"Rr" = ":reply<Enter>";
|
||||||
"c" = ":cf<space>";
|
"Rq" = ":reply -q<Enter>";
|
||||||
"$" = ":term<space>";
|
"c" = ":cf<space>";
|
||||||
"!" = ":term<space>";
|
"$" = ":term<space>";
|
||||||
"|" = ":pipe<space>";
|
"!" = ":term<space>";
|
||||||
"/" = ":search -a<space>";
|
"|" = ":pipe<space>";
|
||||||
"\\" = ":filter -a <space>";
|
"/" = ":search -a<space>";
|
||||||
"n" = ":next-result<Enter>";
|
"\\" = ":filter -a <space>";
|
||||||
"N" = ":prev-result<Enter>";
|
"n" = ":next-result<Enter>";
|
||||||
"<Esc>" = ":clear<Enter>";
|
"N" = ":prev-result<Enter>";
|
||||||
"s" = ":split<Enter>";
|
"<Esc>" = ":clear<Enter>";
|
||||||
"S" = ":vsplit<Enter>";
|
"s" = ":split<Enter>";
|
||||||
"pl" = ":patch list<Enter>";
|
"S" = ":vsplit<Enter>";
|
||||||
"pa" = ":patch apply <Tab>";
|
"pl" = ":patch list<Enter>";
|
||||||
"pd" = ":patch drop <Tab>";
|
"pa" = ":patch apply <Tab>";
|
||||||
"pb" = ":patch rebase<Enter>";
|
"pd" = ":patch drop <Tab>";
|
||||||
"pt" = ":patch term<Enter>";
|
"pb" = ":patch rebase<Enter>";
|
||||||
"ps" = ":patch switch <Tab>";
|
"pt" = ":patch term<Enter>";
|
||||||
};
|
"ps" = ":patch switch <Tab>";
|
||||||
view = {
|
};
|
||||||
"/" = ":toggle-key-passthrough<Enter>/";
|
view = {
|
||||||
"q" = ":close<Enter>";
|
"/" = ":toggle-key-passthrough<Enter>/";
|
||||||
"O" = ":open<Enter>";
|
"q" = ":close<Enter>";
|
||||||
"o" = ":open<Enter>";
|
"O" = ":open<Enter>";
|
||||||
"S" = ":save<space>";
|
"o" = ":open<Enter>";
|
||||||
"|" = ":pipe<space>";
|
"S" = ":save<space>";
|
||||||
"D" = ":delete<Enter>";
|
"|" = ":pipe<space>";
|
||||||
"A" = ":archive flat<Enter>";
|
"D" = ":delete<Enter>";
|
||||||
"<C-l>" = ":open-link <space>";
|
"A" = ":archive flat<Enter>";
|
||||||
"f" = ":flag -t<Enter>";
|
"<C-l>" = ":open-link <space>";
|
||||||
"rr" = ":reply -a<Enter>";
|
"f" = ":flag -t<Enter>";
|
||||||
"rq" = ":reply -aq<Enter>";
|
"rr" = ":reply -a<Enter>";
|
||||||
"Rr" = ":reply<Enter>";
|
"rq" = ":reply -aq<Enter>";
|
||||||
"Rq" = ":reply -q<Enter>";
|
"Rr" = ":reply<Enter>";
|
||||||
"H" = ":toggle-headers<Enter>";
|
"Rq" = ":reply -q<Enter>";
|
||||||
"<C-k>" = ":prev-part<Enter>";
|
"H" = ":toggle-headers<Enter>";
|
||||||
"<C-Up>" = ":prev-part<Enter>";
|
"<C-k>" = ":prev-part<Enter>";
|
||||||
"<C-j>" = ":next-part<Enter>";
|
"<C-Up>" = ":prev-part<Enter>";
|
||||||
"<C-Down>" = ":next-part<Enter>";
|
"<C-j>" = ":next-part<Enter>";
|
||||||
"J" = ":next<Enter>";
|
"<C-Down>" = ":next-part<Enter>";
|
||||||
"<C-Right>" = ":next<Enter>";
|
"J" = ":next<Enter>";
|
||||||
"K" = ":prev<Enter>";
|
"<C-Right>" = ":next<Enter>";
|
||||||
"<C-Left>" = ":prev<Enter>";
|
"K" = ":prev<Enter>";
|
||||||
};
|
"<C-Left>" = ":prev<Enter>";
|
||||||
"view::passthrough" = {
|
};
|
||||||
"$noinherit" = "true";
|
"view::passthrough" = {
|
||||||
"$ex" = "<C-x>";
|
"$noinherit" = "true";
|
||||||
"<Esc>" = ":toggle-key-passthrough<Enter>";
|
"$ex" = "<C-x>";
|
||||||
};
|
"<Esc>" = ":toggle-key-passthrough<Enter>";
|
||||||
compose = {
|
};
|
||||||
"$noinherit" = "true";
|
compose = {
|
||||||
"$ex" = "<C-x>";
|
"$noinherit" = "true";
|
||||||
"$complete" = "<C-o>";
|
"$ex" = "<C-x>";
|
||||||
"<C-k>" = ":prev-field<Enter>";
|
"$complete" = "<C-o>";
|
||||||
"<C-Up>" = ":prev-field<Enter>";
|
"<C-k>" = ":prev-field<Enter>";
|
||||||
"<C-j>" = ":next-field<Enter>";
|
"<C-Up>" = ":prev-field<Enter>";
|
||||||
"<C-Down>" = ":next-field<Enter>";
|
"<C-j>" = ":next-field<Enter>";
|
||||||
"<A-p>" = ":switch-account -p<Enter>";
|
"<C-Down>" = ":next-field<Enter>";
|
||||||
"<C-Left>" = ":switch-account -p<Enter>";
|
"<A-p>" = ":switch-account -p<Enter>";
|
||||||
"<A-n>" = ":switch-account -n<Enter>";
|
"<C-Left>" = ":switch-account -p<Enter>";
|
||||||
"<C-Right>" = ":switch-account -n<Enter>";
|
"<A-n>" = ":switch-account -n<Enter>";
|
||||||
"<tab>" = ":next-field<Enter>";
|
"<C-Right>" = ":switch-account -n<Enter>";
|
||||||
"<backtab>" = ":prev-field<Enter>";
|
"<tab>" = ":next-field<Enter>";
|
||||||
"<C-p>" = ":prev-tab<Enter>";
|
"<backtab>" = ":prev-field<Enter>";
|
||||||
"<C-PgUp>" = ":prev-tab<Enter>";
|
"<C-p>" = ":prev-tab<Enter>";
|
||||||
"<C-n>" = ":next-tab<Enter>";
|
"<C-PgUp>" = ":prev-tab<Enter>";
|
||||||
"<C-PgDn>" = ":next-tab<Enter>";
|
"<C-n>" = ":next-tab<Enter>";
|
||||||
};
|
"<C-PgDn>" = ":next-tab<Enter>";
|
||||||
"compose::editor" = {
|
};
|
||||||
"$noinherit" = "true";
|
"compose::editor" = {
|
||||||
"$ex" = "<C-x>";
|
"$noinherit" = "true";
|
||||||
"<C-k>" = ":prev-field<Enter>";
|
"$ex" = "<C-x>";
|
||||||
"<C-Up>" = ":prev-field<Enter>";
|
"<C-k>" = ":prev-field<Enter>";
|
||||||
"<C-j>" = ":next-field<Enter>";
|
"<C-Up>" = ":prev-field<Enter>";
|
||||||
"<C-Down>" = ":next-field<Enter>";
|
"<C-j>" = ":next-field<Enter>";
|
||||||
"<C-p>" = ":prev-tab<Enter>";
|
"<C-Down>" = ":next-field<Enter>";
|
||||||
"<C-PgUp>" = ":prev-tab<Enter>";
|
"<C-p>" = ":prev-tab<Enter>";
|
||||||
"<C-n>" = ":next-tab<Enter>";
|
"<C-PgUp>" = ":prev-tab<Enter>";
|
||||||
"<C-PgDn>" = ":next-tab<Enter>";
|
"<C-n>" = ":next-tab<Enter>";
|
||||||
};
|
"<C-PgDn>" = ":next-tab<Enter>";
|
||||||
"compose::review" = {
|
};
|
||||||
"y" = ":send<Enter>";
|
"compose::review" = {
|
||||||
"n" = ":abort<Enter>";
|
"y" = ":send<Enter>";
|
||||||
"v" = ":preview<Enter>";
|
"n" = ":abort<Enter>";
|
||||||
"p" = ":postpone<Enter>";
|
"v" = ":preview<Enter>";
|
||||||
"q" = ":choose -o d discard abort -o p postpone postpone<Enter>";
|
"p" = ":postpone<Enter>";
|
||||||
"e" = ":edit<Enter>";
|
"q" = ":choose -o d discard abort -o p postpone postpone<Enter>";
|
||||||
"a" = ":attach<space>";
|
"e" = ":edit<Enter>";
|
||||||
"d" = ":detach<space>";
|
"a" = ":attach<space>";
|
||||||
};
|
"d" = ":detach<space>";
|
||||||
terminal = {
|
};
|
||||||
"$noinherit" = "true";
|
terminal = {
|
||||||
"$ex" = "<C-x>";
|
"$noinherit" = "true";
|
||||||
"<C-p>" = ":prev-tab<Enter>";
|
"$ex" = "<C-x>";
|
||||||
"<C-n>" = ":next-tab<Enter>";
|
"<C-p>" = ":prev-tab<Enter>";
|
||||||
"<C-PgUp>" = ":prev-tab<Enter>";
|
"<C-n>" = ":next-tab<Enter>";
|
||||||
"<C-PgDn>" = ":next-tab<Enter>";
|
"<C-PgUp>" = ":prev-tab<Enter>";
|
||||||
};
|
"<C-PgDn>" = ":next-tab<Enter>";
|
||||||
};
|
};
|
||||||
templates = {
|
|
||||||
quoted_reply = ''
|
|
||||||
{{(index .OriginalFrom 0).Name}}, {{dateFormat (.OriginalDate | toLocal) "Jan 02, 2006 at 15:04"}}:
|
|
||||||
{{ if eq .OriginalMIMEType "text/html" -}}
|
|
||||||
{{- exec `${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html` .OriginalText | quote -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- .OriginalText | quote -}}
|
|
||||||
{{- end}}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
extraConfig = {
|
|
||||||
general = {
|
|
||||||
term = "xterm-256color";
|
|
||||||
unsafe-accounts-conf = true;
|
|
||||||
};
|
|
||||||
ui = {
|
|
||||||
border-char-vertical = "│";
|
|
||||||
border-char-horizontal = "─";
|
|
||||||
styleset-name = "catppuccin-mocha";
|
|
||||||
timestamp-format = "2006-01-02 15:04";
|
|
||||||
sidebar-width = 30;
|
|
||||||
mouse-enabled = true;
|
|
||||||
dirlist-right = "{{if .Unread}}{{humanReadable .Unread}}{{end}}";
|
|
||||||
dirlist-tree = true;
|
|
||||||
};
|
|
||||||
viewer = {
|
|
||||||
pager =
|
|
||||||
"${pkgs.neovim}/bin/nvim -u ${config.xdg.configHome}/nvim/aerc.lua";
|
|
||||||
};
|
|
||||||
compose = { address-book-cmd = ''notmuch address "%s"''; };
|
|
||||||
multipart-converters = {
|
|
||||||
"text/html" =
|
|
||||||
"${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html";
|
|
||||||
};
|
|
||||||
filters = {
|
|
||||||
"text/plain" = "cat";
|
|
||||||
"text/calendar" = "${pkgs.gnome-calendar}/bin/gnome-calendar";
|
|
||||||
"message/delivery-status" = "cat";
|
|
||||||
"message/rfc822" = "cat";
|
|
||||||
"text/html" = "${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html";
|
|
||||||
"application/x-sh" = "${pkgs.bat}/bin/bat -fP -l sh";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extraAccounts = {
|
|
||||||
Zoho = {
|
|
||||||
outgoing = "smtps://email%40thomasave.be@smtp.zoho.com";
|
|
||||||
outgoing-cred-cmd = "cat ~/.secrets/Aerc/Zoho.key";
|
|
||||||
source =
|
|
||||||
"maildir:///home/server/Storage/Thomas/Mail/email@thomasave.be/";
|
|
||||||
check-mail-cmd =
|
|
||||||
"ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
|
||||||
check-mail-timeout = "60s";
|
|
||||||
default = "Inbox";
|
|
||||||
from = ''"Thomas Avé" <email@thomasave.be>'';
|
|
||||||
cache-headers = true;
|
|
||||||
};
|
|
||||||
UAntwerpen = {
|
|
||||||
outgoing =
|
|
||||||
"ssh server@192.168.1.2 /home/server/Containers/mbsync/send.sh";
|
|
||||||
source =
|
|
||||||
"maildir:///home/server/Storage/Thomas/Mail/Thomas.Ave@uantwerpen.be";
|
|
||||||
check-mail-cmd =
|
|
||||||
"ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
|
||||||
check-mail-timeout = "60s";
|
|
||||||
default = "Inbox";
|
|
||||||
from = ''"Thomas Avé" <Thomas.Ave@uantwerpen.be>'';
|
|
||||||
cache-headers = true;
|
|
||||||
};
|
|
||||||
IMEC = {
|
|
||||||
outgoing = "smtp+insecure://ave57%40imec.be@smtp.thomasave.be:1025";
|
|
||||||
outgoing-cred-cmd = "cat ~/.secrets/Aerc/IMEC.key";
|
|
||||||
source =
|
|
||||||
"maildir:///home/server/Storage/Thomas/Mail/Thomas.Ave@imec.be/";
|
|
||||||
check-mail-cmd =
|
|
||||||
"ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
|
||||||
check-mail-timeout = "60s";
|
|
||||||
default = "Inbox";
|
|
||||||
from = ''"Thomas Avé" <Thomas.Ave@imec.be>'';
|
|
||||||
cache-headers = true;
|
|
||||||
};
|
|
||||||
NotMuch = {
|
|
||||||
source = "notmuch:///home/server/Storage/Thomas/Mail/";
|
|
||||||
check-mail-cmd =
|
|
||||||
"ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
|
||||||
check-mail-timeout = "60s";
|
|
||||||
from = ''"Thomas Avé" <Thomas.Ave@uantwerpen.be>'';
|
|
||||||
query-map = "${config.xdg.configHome}/aerc/map.conf";
|
|
||||||
default = "INBOX";
|
|
||||||
cache-headers = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
templates = {
|
||||||
|
quoted_reply = ''
|
||||||
|
{{(index .OriginalFrom 0).Name}}, {{dateFormat (.OriginalDate | toLocal) "Jan 02, 2006 at 15:04"}}:
|
||||||
|
{{ if eq .OriginalMIMEType "text/html" -}}
|
||||||
|
{{- exec `${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html` .OriginalText | quote -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .OriginalText | quote -}}
|
||||||
|
{{- end}}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
extraConfig = {
|
||||||
|
general = {
|
||||||
|
term = "xterm-256color";
|
||||||
|
unsafe-accounts-conf = true;
|
||||||
|
};
|
||||||
|
ui = {
|
||||||
|
border-char-vertical = "│";
|
||||||
|
border-char-horizontal = "─";
|
||||||
|
styleset-name = "catppuccin-mocha";
|
||||||
|
timestamp-format = "2006-01-02 15:04";
|
||||||
|
sidebar-width = 30;
|
||||||
|
mouse-enabled = true;
|
||||||
|
dirlist-right = "{{if .Unread}}{{humanReadable .Unread}}{{end}}";
|
||||||
|
dirlist-tree = true;
|
||||||
|
};
|
||||||
|
viewer = {
|
||||||
|
pager = "${pkgs.neovim}/bin/nvim -u ${config.xdg.configHome}/nvim/aerc.lua";
|
||||||
|
};
|
||||||
|
compose = {address-book-cmd = ''notmuch address "%s"'';};
|
||||||
|
multipart-converters = {
|
||||||
|
"text/html" = "${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html";
|
||||||
|
};
|
||||||
|
filters = {
|
||||||
|
"text/plain" = "cat";
|
||||||
|
"text/calendar" = "${pkgs.gnome-calendar}/bin/gnome-calendar";
|
||||||
|
"message/delivery-status" = "cat";
|
||||||
|
"message/rfc822" = "cat";
|
||||||
|
"text/html" = "${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -T text/html";
|
||||||
|
"application/x-sh" = "${pkgs.bat}/bin/bat -fP -l sh";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraAccounts = {
|
||||||
|
Zoho = {
|
||||||
|
outgoing = "smtps://email%40thomasave.be@smtp.zoho.com";
|
||||||
|
outgoing-cred-cmd = "cat ~/.secrets/Aerc/Zoho.key";
|
||||||
|
source = "maildir:///home/server/Storage/Thomas/Mail/email@thomasave.be/";
|
||||||
|
check-mail-cmd = "ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
||||||
|
check-mail-timeout = "60s";
|
||||||
|
default = "Inbox";
|
||||||
|
from = ''"Thomas Avé" <email@thomasave.be>'';
|
||||||
|
cache-headers = true;
|
||||||
|
};
|
||||||
|
UAntwerpen = {
|
||||||
|
outgoing = "ssh server@192.168.1.2 /home/server/Containers/mbsync/send.sh";
|
||||||
|
source = "maildir:///home/server/Storage/Thomas/Mail/Thomas.Ave@uantwerpen.be";
|
||||||
|
check-mail-cmd = "ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
||||||
|
check-mail-timeout = "60s";
|
||||||
|
default = "Inbox";
|
||||||
|
from = ''"Thomas Avé" <Thomas.Ave@uantwerpen.be>'';
|
||||||
|
cache-headers = true;
|
||||||
|
};
|
||||||
|
IMEC = {
|
||||||
|
outgoing = "smtp+insecure://ave57%40imec.be@smtp.thomasave.be:1025";
|
||||||
|
outgoing-cred-cmd = "cat ~/.secrets/Aerc/IMEC.key";
|
||||||
|
source = "maildir:///home/server/Storage/Thomas/Mail/Thomas.Ave@imec.be/";
|
||||||
|
check-mail-cmd = "ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
||||||
|
check-mail-timeout = "60s";
|
||||||
|
default = "Inbox";
|
||||||
|
from = ''"Thomas Avé" <Thomas.Ave@imec.be>'';
|
||||||
|
cache-headers = true;
|
||||||
|
};
|
||||||
|
NotMuch = {
|
||||||
|
source = "notmuch:///home/server/Storage/Thomas/Mail/";
|
||||||
|
check-mail-cmd = "ssh server@10.1 /home/server/Containers/mbsync/sync.sh";
|
||||||
|
check-mail-timeout = "60s";
|
||||||
|
from = ''"Thomas Avé" <Thomas.Ave@uantwerpen.be>'';
|
||||||
|
query-map = "${config.xdg.configHome}/aerc/map.conf";
|
||||||
|
default = "INBOX";
|
||||||
|
cache-headers = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.file."${config.xdg.configHome}/aerc/map.conf".text =
|
home.file."${config.xdg.configHome}/aerc/map.conf".text = "Inbox=tag:inbox and not tag:archived and not tag:deleted";
|
||||||
"Inbox=tag:inbox and not tag:archived and not tag:deleted";
|
home.file."${config.xdg.configHome}/aerc/stylesets/catppuccin-mocha".text = ''
|
||||||
home.file."${config.xdg.configHome}/aerc/stylesets/catppuccin-mocha".text = ''
|
|
||||||
*.default=true
|
*.default=true
|
||||||
*.normal=true
|
*.normal=true
|
||||||
|
|
||||||
|
|
@ -305,5 +295,5 @@
|
||||||
diff_del.fg=#f38ba8
|
diff_del.fg=#f38ba8
|
||||||
quote_*.fg=#6c7086
|
quote_*.fg=#6c7086
|
||||||
quote_1.fg=#9399b2
|
quote_1.fg=#9399b2
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,102 +1,99 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: let
|
||||||
let
|
lock-false = {
|
||||||
lock-false = {
|
Value = false;
|
||||||
Value = false;
|
Status = "locked";
|
||||||
Status = "locked";
|
};
|
||||||
};
|
in {
|
||||||
in
|
programs.firefox = {
|
||||||
{
|
enable = true;
|
||||||
programs.firefox = {
|
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||||
enable = true;
|
pkcs11Modules = [
|
||||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
pkgs.eid-mw
|
||||||
pkcs11Modules = [
|
];
|
||||||
pkgs.eid-mw
|
extraPolicies = {
|
||||||
];
|
DisableTelemetry = true;
|
||||||
extraPolicies = {
|
DisableFirefoxStudies = true;
|
||||||
DisableTelemetry = true;
|
DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab"
|
||||||
DisableFirefoxStudies = true;
|
EnableTrackingProtection = {
|
||||||
DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab"
|
Value = true;
|
||||||
EnableTrackingProtection = {
|
Locked = true;
|
||||||
Value = true;
|
Cryptomining = true;
|
||||||
Locked = true;
|
Fingerprinting = true;
|
||||||
Cryptomining = true;
|
|
||||||
Fingerprinting = true;
|
|
||||||
};
|
|
||||||
ExtensionSettings = {
|
|
||||||
"{3e4d2037-d300-4e95-859d-3cba866f46d3}" = {
|
|
||||||
install_url =
|
|
||||||
"https://addons.mozilla.org/firefox/downloads/latest/private-internet-access-ext/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
"{c7c120ff-2878-4e59-a5a3-cd4d1655bc13}" = {
|
|
||||||
install_url = "file://${./files/signed.xpi}";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Preferences = {
|
|
||||||
"browser.disableResetPrompt" = true;
|
|
||||||
"browser.download.panel.shown" = true;
|
|
||||||
"browser.shell.checkDefaultBrowser" = false;
|
|
||||||
"browser.tabs.inTitlebar" = 0;
|
|
||||||
"browser.shell.defaultBrowserCheckCount" = 1;
|
|
||||||
"browser.startup.homepage" = "https://start.duckduckgo.com";
|
|
||||||
"browser.compactmode.show" = true;
|
|
||||||
"browser.uidensity" = 1;
|
|
||||||
"extensions.update.enabled" = false;
|
|
||||||
"extensions.pocket.enabled" = lock-false;
|
|
||||||
"extensions.autoDisableScopes" = 0;
|
|
||||||
"browser.contentblocking.category" = {
|
|
||||||
Value = "strict";
|
|
||||||
Status = "locked";
|
|
||||||
};
|
|
||||||
"privacy.trackingprotection.enabled" = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
profiles = {
|
ExtensionSettings = {
|
||||||
default = {
|
"{3e4d2037-d300-4e95-859d-3cba866f46d3}" = {
|
||||||
id = 0;
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/private-internet-access-ext/latest.xpi";
|
||||||
name = "default";
|
installation_mode = "force_installed";
|
||||||
isDefault = true;
|
};
|
||||||
search = {
|
"{c7c120ff-2878-4e59-a5a3-cd4d1655bc13}" = {
|
||||||
force = true;
|
install_url = "file://${./files/signed.xpi}";
|
||||||
default = "ddg";
|
installation_mode = "force_installed";
|
||||||
order = [ "ddg" "google" ];
|
};
|
||||||
};
|
|
||||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
||||||
ublock-origin
|
|
||||||
bitwarden
|
|
||||||
privacy-badger
|
|
||||||
beyond-20
|
|
||||||
display-_anchors
|
|
||||||
facebook-container
|
|
||||||
multi-account-containers
|
|
||||||
istilldontcareaboutcookies
|
|
||||||
return-youtube-dislikes
|
|
||||||
sponsorblock
|
|
||||||
unpaywall
|
|
||||||
vimium
|
|
||||||
google-container
|
|
||||||
duckduckgo-privacy-essentials
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
Preferences = {
|
||||||
|
"browser.disableResetPrompt" = true;
|
||||||
|
"browser.download.panel.shown" = true;
|
||||||
|
"browser.shell.checkDefaultBrowser" = false;
|
||||||
|
"browser.tabs.inTitlebar" = 0;
|
||||||
|
"browser.shell.defaultBrowserCheckCount" = 1;
|
||||||
|
"browser.startup.homepage" = "https://start.duckduckgo.com";
|
||||||
|
"browser.compactmode.show" = true;
|
||||||
|
"browser.uidensity" = 1;
|
||||||
|
"extensions.update.enabled" = false;
|
||||||
|
"extensions.pocket.enabled" = lock-false;
|
||||||
|
"extensions.autoDisableScopes" = 0;
|
||||||
|
"browser.contentblocking.category" = {
|
||||||
|
Value = "strict";
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
"privacy.trackingprotection.enabled" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
profiles = {
|
||||||
|
default = {
|
||||||
|
id = 0;
|
||||||
|
name = "default";
|
||||||
|
isDefault = true;
|
||||||
|
search = {
|
||||||
|
force = true;
|
||||||
|
default = "ddg";
|
||||||
|
order = ["ddg" "google"];
|
||||||
|
};
|
||||||
|
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
ublock-origin
|
||||||
|
bitwarden
|
||||||
|
privacy-badger
|
||||||
|
beyond-20
|
||||||
|
display-_anchors
|
||||||
|
facebook-container
|
||||||
|
multi-account-containers
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
return-youtube-dislikes
|
||||||
|
sponsorblock
|
||||||
|
unpaywall
|
||||||
|
vimium
|
||||||
|
google-container
|
||||||
|
duckduckgo-privacy-essentials
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# xdg.mimeApps.defaultApplications = {
|
# xdg.mimeApps.defaultApplications = {
|
||||||
# "application/json" = [ "firefox.desktop" ];
|
# "application/json" = [ "firefox.desktop" ];
|
||||||
# "application/x-extension-htm" = [ "firefox.desktop" ];
|
# "application/x-extension-htm" = [ "firefox.desktop" ];
|
||||||
# "application/x-extension-html" = [ "firefox.desktop" ];
|
# "application/x-extension-html" = [ "firefox.desktop" ];
|
||||||
# "application/x-extension-shtml" = [ "firefox.desktop" ];
|
# "application/x-extension-shtml" = [ "firefox.desktop" ];
|
||||||
# "application/x-extension-xhtml" = [ "firefox.desktop" ];
|
# "application/x-extension-xhtml" = [ "firefox.desktop" ];
|
||||||
# "application/x-extension-xht" = [ "firefox.desktop" ];
|
# "application/x-extension-xht" = [ "firefox.desktop" ];
|
||||||
# "application/xhtml+xml" = [ "firefox.desktop" ];
|
# "application/xhtml+xml" = [ "firefox.desktop" ];
|
||||||
# "text/html" = [ "firefox.desktop" ];
|
# "text/html" = [ "firefox.desktop" ];
|
||||||
# "text/xml" = [ "firefox.desktop" ];
|
# "text/xml" = [ "firefox.desktop" ];
|
||||||
# "x-scheme-handler/about" = [ "firefox.desktop" ];
|
# "x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||||
# "x-scheme-handler/ftp" = [ "firefox.desktop" ];
|
# "x-scheme-handler/ftp" = [ "firefox.desktop" ];
|
||||||
# "x-scheme-handler/http" = [ "firefox.desktop" ];
|
# "x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||||
# "x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
# "x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
||||||
# "x-scheme-handler/https" = [ "firefox.desktop" ];
|
# "x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||||
# };
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,38 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
programs.foot = {
|
||||||
programs.foot = {
|
enable = true;
|
||||||
enable = true;
|
server.enable = true;
|
||||||
server.enable = true;
|
settings = {
|
||||||
settings = {
|
main = {
|
||||||
main = {
|
font = "DejaVu Sans Mono:size=13";
|
||||||
font = "DejaVu Sans Mono:size=13";
|
term = "xterm-256color";
|
||||||
term = "xterm-256color";
|
line-height = "18";
|
||||||
line-height = "18";
|
};
|
||||||
};
|
tweak = {
|
||||||
tweak = {
|
sixel = "yes";
|
||||||
sixel = "yes";
|
};
|
||||||
};
|
scrollback.lines = 100000;
|
||||||
scrollback.lines = 100000;
|
colors-dark = {
|
||||||
colors = {
|
background = "000010";
|
||||||
background = "000010";
|
foreground = "F8F8F2";
|
||||||
foreground = "F8F8F2";
|
regular0 = "121212";
|
||||||
regular0 = "121212";
|
regular1 = "fa2573";
|
||||||
regular1 = "fa2573";
|
regular2 = "97e123";
|
||||||
regular2 = "97e123";
|
regular3 = "dfd460";
|
||||||
regular3 = "dfd460";
|
regular4 = "0f7fcf";
|
||||||
regular4 = "0f7fcf";
|
regular5 = "8700ff";
|
||||||
regular5 = "8700ff";
|
regular6 = "42a7cf";
|
||||||
regular6 = "42a7cf";
|
regular7 = "bbbbbb";
|
||||||
regular7 = "bbbbbb";
|
bright0 = "555556";
|
||||||
bright0 = "555556";
|
bright1 = "f5669c";
|
||||||
bright1 = "f5669c";
|
bright2 = "b0e05e";
|
||||||
bright2 = "b0e05e";
|
bright3 = "fef26c";
|
||||||
bright3 = "fef26c";
|
bright4 = "00afff";
|
||||||
bright4 = "00afff";
|
bright5 = "af87ff";
|
||||||
bright5 = "af87ff";
|
bright6 = "50cdfe";
|
||||||
bright6 = "50cdfe";
|
bright7 = "ffffff";
|
||||||
bright7 = "ffffff";
|
alpha = "0.3";
|
||||||
alpha = "0.3";
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,43 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
programs.ghostty = {
|
||||||
programs.ghostty= {
|
enable = true;
|
||||||
enable = true;
|
enableZshIntegration = true;
|
||||||
enableZshIntegration = true;
|
installVimSyntax = true;
|
||||||
installVimSyntax = true;
|
themes = {
|
||||||
themes = {
|
personal = {
|
||||||
personal = {
|
background-opacity = 0.3;
|
||||||
background-opacity = 0.3;
|
foreground = "#F8F8F2";
|
||||||
foreground = "#F8F8F2";
|
background = "#000010";
|
||||||
background = "#000010";
|
selection-foreground = "#121212";
|
||||||
selection-foreground = "#121212";
|
selection-background = "#b4d5ff";
|
||||||
selection-background = "#b4d5ff";
|
cursor-color = "#bbbbbb";
|
||||||
cursor-color = "#bbbbbb";
|
palette = [
|
||||||
palette = [
|
"0=#121212"
|
||||||
"0=#121212"
|
"8=#545454"
|
||||||
"8=#545454"
|
"1=#fa2573"
|
||||||
"1=#fa2573"
|
"9=#f5669c"
|
||||||
"9=#f5669c"
|
"2=#97e123"
|
||||||
"2=#97e123"
|
"10=#b0e05e"
|
||||||
"10=#b0e05e"
|
"3=#dfd460"
|
||||||
"3=#dfd460"
|
"11=#fef26c"
|
||||||
"11=#fef26c"
|
"4=#0f7fcf"
|
||||||
"4=#0f7fcf"
|
"12=#00afff"
|
||||||
"12=#00afff"
|
"5=#8700ff"
|
||||||
"5=#8700ff"
|
"13=#af87ff"
|
||||||
"13=#af87ff"
|
"6=#42a7cf"
|
||||||
"6=#42a7cf"
|
"14=#50cdfe"
|
||||||
"14=#50cdfe"
|
"7=#bbbbbb"
|
||||||
"7=#bbbbbb"
|
"15=#ffffff"
|
||||||
"15=#ffffff"
|
];
|
||||||
];
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
resize-overlay = "never";
|
|
||||||
theme = "personal";
|
|
||||||
font-size = 13;
|
|
||||||
font-family = "JetBrains Mono";
|
|
||||||
window-decoration = false;
|
|
||||||
# adjust-cell-height = "10%";
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
settings = {
|
||||||
|
resize-overlay = "never";
|
||||||
|
theme = "personal";
|
||||||
|
font-size = 13;
|
||||||
|
font-family = "JetBrains Mono";
|
||||||
|
window-decoration = false;
|
||||||
|
# adjust-cell-height = "10%";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,41 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
|
programs.git = {
|
||||||
{
|
enable = true;
|
||||||
programs.git = {
|
lfs.enable = true;
|
||||||
enable = true;
|
settings = {
|
||||||
lfs.enable = true;
|
alias = {
|
||||||
settings = {
|
s = "status";
|
||||||
alias = {
|
a = "add";
|
||||||
s = "status";
|
};
|
||||||
a = "add";
|
user = {
|
||||||
};
|
name = "Thomas Avé";
|
||||||
user = {
|
email = "email@thomasave.be";
|
||||||
name = "Thomas Avé";
|
};
|
||||||
email = "email@thomasave.be";
|
credentials.helper = "store";
|
||||||
};
|
pull.rebase = false;
|
||||||
credentials.helper = "store";
|
push.autoSetupRemove = true;
|
||||||
pull.rebase = false;
|
branch.autoSetupMerge = true;
|
||||||
push.autoSetupRemove = true;
|
init.defaultBranch = "master";
|
||||||
branch.autoSetupMerge = true;
|
diff.noprefix = true;
|
||||||
init.defaultBranch = "master";
|
color.ui = "auto";
|
||||||
diff.noprefix = true;
|
core = {
|
||||||
color.ui = "auto";
|
excludesfile = "~/.gitignore";
|
||||||
core = {
|
editor = "${pkgs.neovim}/bin/nvim";
|
||||||
excludesfile = "~/.gitignore";
|
};
|
||||||
editor = "${pkgs.neovim}/bin/nvim";
|
rerere.enabled = true;
|
||||||
};
|
|
||||||
rerere.enabled = true;
|
|
||||||
};
|
|
||||||
ignores = [
|
|
||||||
"*.direnv/"
|
|
||||||
".dmypy.json"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
programs.lazygit = {
|
ignores = [
|
||||||
enable = true;
|
"*.direnv/"
|
||||||
settings = {
|
".dmypy.json"
|
||||||
os = {
|
];
|
||||||
editPreset = "nvim";
|
};
|
||||||
autoStageResolvedConflicts = false;
|
programs.lazygit = {
|
||||||
};
|
enable = true;
|
||||||
};
|
settings = {
|
||||||
|
os = {
|
||||||
|
editPreset = "nvim";
|
||||||
|
autoStageResolvedConflicts = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,59 +1,58 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
home.packages = [
|
||||||
home.packages = [
|
(pkgs.appimageTools.wrapType2 {
|
||||||
(pkgs.appimageTools.wrapType2 {
|
pname = "Helium";
|
||||||
pname = "Helium";
|
version = "0.4.7.1";
|
||||||
version = "0.4.7.1";
|
src = pkgs.fetchurl {
|
||||||
src = pkgs.fetchurl {
|
url = "https://github.com/imputnet/helium-linux/releases/download/0.8.5.1/helium-0.8.5.1-x86_64.AppImage";
|
||||||
url = "https://github.com/imputnet/helium-linux/releases/download/0.8.5.1/helium-0.8.5.1-x86_64.AppImage";
|
sha256 = "sha256-jFSLLDsHB/NiJqFmn8S+JpdM8iCy3Zgyq+8l4RkBecM=";
|
||||||
sha256 = "sha256-jFSLLDsHB/NiJqFmn8S+JpdM8iCy3Zgyq+8l4RkBecM=";
|
};
|
||||||
};
|
})
|
||||||
})
|
];
|
||||||
];
|
xdg.desktopEntries = {
|
||||||
xdg.desktopEntries = {
|
helium = {
|
||||||
helium = {
|
name = "Helium";
|
||||||
name = "Helium";
|
genericName = "Web Browser";
|
||||||
genericName = "Web Browser";
|
comment = "Access the Internet";
|
||||||
comment = "Access the Internet";
|
exec = "Helium --enable-features=TouchpadOverscrollHistoryNavigation %U";
|
||||||
exec = "Helium --enable-features=TouchpadOverscrollHistoryNavigation %U";
|
startupNotify = true;
|
||||||
startupNotify = true;
|
terminal = false;
|
||||||
terminal = false;
|
icon = "chromium";
|
||||||
icon = "chromium";
|
type = "Application";
|
||||||
type = "Application";
|
categories = ["Network" "WebBrowser"];
|
||||||
categories = [ "Network" "WebBrowser" ];
|
mimeType = [
|
||||||
mimeType = [
|
"x-scheme-handler/webcal"
|
||||||
"x-scheme-handler/webcal"
|
"application/pdf"
|
||||||
"application/pdf"
|
"application/rdf+xml"
|
||||||
"application/rdf+xml"
|
"application/rss+xml"
|
||||||
"application/rss+xml"
|
"application/xhtml+xml"
|
||||||
"application/xhtml+xml"
|
"application/xhtml_xml"
|
||||||
"application/xhtml_xml"
|
"application/xml"
|
||||||
"application/xml"
|
"image/gif"
|
||||||
"image/gif"
|
"image/jpeg"
|
||||||
"image/jpeg"
|
"image/png"
|
||||||
"image/png"
|
"image/webp"
|
||||||
"image/webp"
|
"text/html"
|
||||||
"text/html"
|
"text/xml"
|
||||||
"text/xml"
|
"x-scheme-handler/http"
|
||||||
"x-scheme-handler/http"
|
"x-scheme-handler/https"
|
||||||
"x-scheme-handler/https"
|
];
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xdg.mimeApps.defaultApplications = {
|
|
||||||
"application/json" = [ "helium.desktop" ];
|
|
||||||
"application/x-extension-htm" = [ "helium.desktop" ];
|
|
||||||
"application/x-extension-html" = [ "helium.desktop" ];
|
|
||||||
"application/x-extension-shtml" = [ "helium.desktop" ];
|
|
||||||
"application/x-extension-xhtml" = [ "helium.desktop" ];
|
|
||||||
"application/x-extension-xht" = [ "helium.desktop" ];
|
|
||||||
"application/xhtml+xml" = [ "helium.desktop" ];
|
|
||||||
"text/html" = [ "helium.desktop" ];
|
|
||||||
"text/xml" = [ "helium.desktop" ];
|
|
||||||
"x-scheme-handler/about" = [ "helium.desktop" ];
|
|
||||||
"x-scheme-handler/ftp" = [ "helium.desktop" ];
|
|
||||||
"x-scheme-handler/http" = [ "helium.desktop" ];
|
|
||||||
"x-scheme-handler/unknown" = [ "helium.desktop" ];
|
|
||||||
"x-scheme-handler/https" = [ "helium.desktop" ];
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/json" = ["helium.desktop"];
|
||||||
|
"application/x-extension-htm" = ["helium.desktop"];
|
||||||
|
"application/x-extension-html" = ["helium.desktop"];
|
||||||
|
"application/x-extension-shtml" = ["helium.desktop"];
|
||||||
|
"application/x-extension-xhtml" = ["helium.desktop"];
|
||||||
|
"application/x-extension-xht" = ["helium.desktop"];
|
||||||
|
"application/xhtml+xml" = ["helium.desktop"];
|
||||||
|
"text/html" = ["helium.desktop"];
|
||||||
|
"text/xml" = ["helium.desktop"];
|
||||||
|
"x-scheme-handler/about" = ["helium.desktop"];
|
||||||
|
"x-scheme-handler/ftp" = ["helium.desktop"];
|
||||||
|
"x-scheme-handler/http" = ["helium.desktop"];
|
||||||
|
"x-scheme-handler/unknown" = ["helium.desktop"];
|
||||||
|
"x-scheme-handler/https" = ["helium.desktop"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,297 +1,297 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: let
|
||||||
let
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||||
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
gnome-calendar = "${pkgs.gnome-calendar}/bin/gnome-calendar";
|
||||||
gnome-calendar = "${pkgs.gnome-calendar}/bin/gnome-calendar";
|
wpctl = "${pkgs.wireplumber}/bin/wpctl";
|
||||||
wpctl = "${pkgs.wireplumber}/bin/wpctl";
|
terminal-name = "foot";
|
||||||
terminal-name = "foot";
|
terminal = "${pkgs.foot}/bin/footclient";
|
||||||
terminal = "${pkgs.foot}/bin/footclient";
|
jq = "${pkgs.jq}/bin/jq";
|
||||||
jq = "${pkgs.jq}/bin/jq";
|
|
||||||
|
|
||||||
# Disable split-monitor-workspaces
|
# Disable split-monitor-workspaces
|
||||||
workspace_command_prefix = "";
|
workspace_command_prefix = "";
|
||||||
hyprland_plugins = [];
|
hyprland_plugins = [];
|
||||||
|
|
||||||
launch_terminal = pkgs.writeShellScriptBin "launch_terminal" ''
|
launch_terminal = pkgs.writeShellScriptBin "launch_terminal" ''
|
||||||
function find_leaf_pid(){
|
function find_leaf_pid(){
|
||||||
local PID
|
local PID
|
||||||
local RET
|
local RET
|
||||||
local NAME
|
local NAME
|
||||||
PID=$1
|
PID=$1
|
||||||
for CHILD_PID in $(pgrep -P "$PID"); do
|
for CHILD_PID in $(pgrep -P "$PID"); do
|
||||||
RET=$(find_leaf_pid "$CHILD_PID")
|
RET=$(find_leaf_pid "$CHILD_PID")
|
||||||
if [ "$RET" != "" ]; then
|
if [ "$RET" != "" ]; then
|
||||||
PID="$RET"
|
PID="$RET"
|
||||||
fi
|
|
||||||
done
|
|
||||||
NAME=$(ps -p "$PID" -o comm=)
|
|
||||||
if [ "$NAME" == "zsh" ]; then
|
|
||||||
echo "$PID"
|
|
||||||
elif [ "$NAME" == "ssh" ]; then
|
|
||||||
echo "$PID"
|
|
||||||
fi
|
fi
|
||||||
}
|
done
|
||||||
|
NAME=$(ps -p "$PID" -o comm=)
|
||||||
|
if [ "$NAME" == "zsh" ]; then
|
||||||
|
echo "$PID"
|
||||||
|
elif [ "$NAME" == "ssh" ]; then
|
||||||
|
echo "$PID"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
LEAF_PID=$(find_leaf_pid "$1")
|
LEAF_PID=$(find_leaf_pid "$1")
|
||||||
if [ "$(ps -p "$LEAF_PID" -o comm=)" == "ssh" ]; then
|
if [ "$(ps -p "$LEAF_PID" -o comm=)" == "ssh" ]; then
|
||||||
SSH_COMMAND=$(ps -p "$LEAF_PID" -o args --no-headers)
|
SSH_COMMAND=$(ps -p "$LEAF_PID" -o args --no-headers)
|
||||||
if [[ "$SSH_COMMAND" == *"waypipe"* ]]; then
|
if [[ "$SSH_COMMAND" == *"waypipe"* ]]; then
|
||||||
CLIENT=$(echo "$SSH_COMMAND" | awk '{ print $5 }')
|
CLIENT=$(echo "$SSH_COMMAND" | awk '{ print $5 }')
|
||||||
PREVIOUS_SESSION_ID=$(grep -z "SSH_SESSION_ID" "/proc/$LEAF_PID/environ" | xargs -0 -n 1 | grep -oP "[0-9]*")
|
PREVIOUS_SESSION_ID=$(grep -z "SSH_SESSION_ID" "/proc/$LEAF_PID/environ" | xargs -0 -n 1 | grep -oP "[0-9]*")
|
||||||
SSH_SESSION_ID=$RANDOM
|
SSH_SESSION_ID=$RANDOM
|
||||||
${terminal} -e zsh -c "SSH_SESSION_ID=$SSH_SESSION_ID waypipe ssh -t \"$CLIENT\" env SSH_SESSION_ID=\"$SSH_SESSION_ID\" PREVIOUS_SESSION_ID=\"$PREVIOUS_SESSION_ID\" \"zsh --login\""
|
${terminal} -e zsh -c "SSH_SESSION_ID=$SSH_SESSION_ID waypipe ssh -t \"$CLIENT\" env SSH_SESSION_ID=\"$SSH_SESSION_ID\" PREVIOUS_SESSION_ID=\"$PREVIOUS_SESSION_ID\" \"zsh --login\""
|
||||||
else
|
else
|
||||||
${terminal} -e zsh -c "ssh -t \"$(echo "$SSH_COMMAND" | awk '{ print $2 }')\""
|
${terminal} -e zsh -c "ssh -t \"$(echo "$SSH_COMMAND" | awk '{ print $2 }')\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else # Not an ssh session
|
else # Not an ssh session
|
||||||
if [ "$(ps -p "$1" -o comm=)" == "${terminal-name}" ]; then
|
if [ "$(ps -p "$1" -o comm=)" == "${terminal-name}" ]; then
|
||||||
CWD=$(readlink -e /proc/"$LEAF_PID"/cwd)
|
CWD=$(readlink -e /proc/"$LEAF_PID"/cwd)
|
||||||
if [ "$CWD" != "" ]; then
|
if [ "$CWD" != "" ]; then
|
||||||
${terminal} --working-directory "$CWD"
|
${terminal} --working-directory "$CWD"
|
||||||
else
|
|
||||||
${terminal}
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
${terminal}
|
${terminal}
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
${terminal}
|
||||||
fi
|
fi
|
||||||
'';
|
fi
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.wl-clipboard
|
pkgs.wl-clipboard
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
];
|
];
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
splash = false;
|
splash = false;
|
||||||
wallpaper = {
|
wallpaper = {
|
||||||
path = "${./files/wallpaper.png}";
|
path = "${./files/wallpaper.png}";
|
||||||
monitor = "";
|
monitor = "";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
input-field = [
|
input-field = [
|
||||||
{
|
{
|
||||||
size = "200, 50";
|
size = "200, 50";
|
||||||
position = "0, -80";
|
position = "0, -80";
|
||||||
monitor = "";
|
monitor = "";
|
||||||
dots_center = true;
|
dots_center = true;
|
||||||
fade_on_empty = true;
|
fade_on_empty = true;
|
||||||
font_color = "rgb(202, 211, 245)";
|
font_color = "rgb(202, 211, 245)";
|
||||||
inner_color = "rgb(91, 96, 120)";
|
inner_color = "rgb(91, 96, 120)";
|
||||||
outer_color = "rgb(24, 25, 38)";
|
outer_color = "rgb(24, 25, 38)";
|
||||||
outline_thickness = 3;
|
outline_thickness = 3;
|
||||||
placeholder_text = "<span foreground=\"##cad3f5\">Password...</span>";
|
placeholder_text = "<span foreground=\"##cad3f5\">Password...</span>";
|
||||||
shadow_passes = 2;
|
shadow_passes = 2;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
general = {
|
general = {
|
||||||
no_fade_in = false;
|
no_fade_in = false;
|
||||||
};
|
};
|
||||||
background = [
|
background = [
|
||||||
{
|
{
|
||||||
path = "screenshot";
|
path = "screenshot";
|
||||||
blur_passes = 3;
|
blur_passes = 3;
|
||||||
blur_size = 8;
|
blur_size = 8;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
plugins = [ ] ++ hyprland_plugins;
|
plugins = [] ++ hyprland_plugins;
|
||||||
settings = {
|
settings = {
|
||||||
"$mainMod" = pkgs.lib.mkDefault "SUPER_L";
|
"$mainMod" = pkgs.lib.mkDefault "SUPER_L";
|
||||||
"$altMod" = pkgs.lib.mkDefault "ALT_L";
|
"$altMod" = pkgs.lib.mkDefault "ALT_L";
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"uwsm app -- hyprpaper"
|
"uwsm app -- hyprpaper"
|
||||||
"uwsm app -- foot --server"
|
"uwsm app -- foot --server"
|
||||||
"uwsm app -- hyprctl dispatch exec ags run"
|
"uwsm app -- hyprctl dispatch exec ags run"
|
||||||
"uwsm app -- ${pkgs.mate.mate-polkit}/bin/polkit-mate"
|
"uwsm app -- ${pkgs.mate.mate-polkit}/bin/polkit-mate"
|
||||||
];
|
];
|
||||||
env = [
|
env = [
|
||||||
"WLR_NO_HARDWARE_CURSORS,1"
|
"WLR_NO_HARDWARE_CURSORS,1"
|
||||||
"TERMINAL,${terminal}"
|
"TERMINAL,${terminal}"
|
||||||
"WLR_RENDERER_ALLOW_SOFTWARE,1"
|
"WLR_RENDERER_ALLOW_SOFTWARE,1"
|
||||||
];
|
];
|
||||||
debug = { disable_logs = false; };
|
debug = {disable_logs = false;};
|
||||||
|
|
||||||
# UPDATED: New Window Rule Syntax (0.53.0)
|
# UPDATED: New Window Rule Syntax (0.53.0)
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"float on, match:title ^(rofi)(.*)$"
|
"float on, match:title ^(rofi)(.*)$"
|
||||||
"center on, match:title ^(rofi)(.*)$"
|
"center on, match:title ^(rofi)(.*)$"
|
||||||
"border_size 0, match:title ^(rofi)(.*)$" # 'noborder' is replaced by border_size 0
|
"border_size 0, match:title ^(rofi)(.*)$" # 'noborder' is replaced by border_size 0
|
||||||
|
|
||||||
# Combined matches (replaces old multi-rule logic)
|
# Combined matches (replaces old multi-rule logic)
|
||||||
"stay_focused on, match:title ^()$, match:class ^(steam)$"
|
"stay_focused on, match:title ^()$, match:class ^(steam)$"
|
||||||
"min_size 1 1, match:title ^()$, match:class ^(steam)$"
|
"min_size 1 1, match:title ^()$, match:class ^(steam)$"
|
||||||
"stay_focused on, match:title ^()$, match:class ^(steam)$"
|
"stay_focused on, match:title ^()$, match:class ^(steam)$"
|
||||||
|
|
||||||
"workspace 8, match:class thunderbird"
|
"workspace 8, match:class thunderbird"
|
||||||
"workspace 9, match:class spotify"
|
"workspace 9, match:class spotify"
|
||||||
"workspace 10, match:class Slack"
|
"workspace 10, match:class Slack"
|
||||||
|
|
||||||
# Windowrulev2-style logic updated to new prop syntax
|
# Windowrulev2-style logic updated to new prop syntax
|
||||||
"border_size 0, match:float 0, match:workspace w[tv1]"
|
"border_size 0, match:float 0, match:workspace w[tv1]"
|
||||||
"rounding 0, match:float 0, match:workspace w[tv1]"
|
"rounding 0, match:float 0, match:workspace w[tv1]"
|
||||||
"border_size 0, match:float 0, match:workspace f[1]"
|
"border_size 0, match:float 0, match:workspace f[1]"
|
||||||
"rounding 0, match:float 0, match:workspace f[1]"
|
"rounding 0, match:float 0, match:workspace f[1]"
|
||||||
];
|
];
|
||||||
|
|
||||||
# UPDATED: New Layer Rule Syntax (0.53.0)
|
# UPDATED: New Layer Rule Syntax (0.53.0)
|
||||||
# Syntax: effect value, match:namespace regex
|
# Syntax: effect value, match:namespace regex
|
||||||
layerrule = [
|
layerrule = [
|
||||||
"no_anim on, match:namespace ags_bar_0"
|
"no_anim on, match:namespace ags_bar_0"
|
||||||
"no_anim on, match:namespace selection"
|
"no_anim on, match:namespace selection"
|
||||||
"blur on, match:namespace vicinae"
|
"blur on, match:namespace vicinae"
|
||||||
"ignore_alpha 0, match:namespace vicinae"
|
"ignore_alpha 0, match:namespace vicinae"
|
||||||
"no_anim on, match:namespace vicinae"
|
"no_anim on, match:namespace vicinae"
|
||||||
];
|
];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 1;
|
gaps_in = 1;
|
||||||
gaps_out = pkgs.lib.mkDefault 5;
|
gaps_out = pkgs.lib.mkDefault 5;
|
||||||
border_size = 2;
|
border_size = 2;
|
||||||
"col.active_border" = "rgba(002f5fee)";
|
"col.active_border" = "rgba(002f5fee)";
|
||||||
"col.inactive_border" = "rgba(ffffff00)";
|
"col.inactive_border" = "rgba(ffffff00)";
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
};
|
};
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
kb_options = pkgs.lib.mkDefault "compose:rctrl, caps:ctrl_modifier";
|
kb_options = pkgs.lib.mkDefault "compose:rctrl, caps:ctrl_modifier";
|
||||||
numlock_by_default = true;
|
numlock_by_default = true;
|
||||||
};
|
};
|
||||||
binds = { scroll_event_delay = 1; };
|
binds = {scroll_event_delay = 1;};
|
||||||
xwayland = { force_zero_scaling = true; };
|
xwayland = {force_zero_scaling = true;};
|
||||||
misc = {
|
misc = {
|
||||||
disable_hyprland_logo = 1;
|
disable_hyprland_logo = 1;
|
||||||
# Removed 'enable_anr_dialog' (deprecated/removed in recent versions)
|
# Removed 'enable_anr_dialog' (deprecated/removed in recent versions)
|
||||||
};
|
};
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 1;
|
rounding = 1;
|
||||||
blur = { enabled = false; };
|
blur = {enabled = false;};
|
||||||
};
|
};
|
||||||
animations = {
|
animations = {
|
||||||
enabled = "yes";
|
enabled = "yes";
|
||||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||||
animation = [
|
animation = [
|
||||||
"windows, 1, 2, myBezier"
|
"windows, 1, 2, myBezier"
|
||||||
"windowsOut, 1, 2, default, popin 80%"
|
"windowsOut, 1, 2, default, popin 80%"
|
||||||
"border, 1, 2, default"
|
"border, 1, 2, default"
|
||||||
"borderangle, 1, 2, default"
|
"borderangle, 1, 2, default"
|
||||||
"fade, 1, 2, default"
|
"fade, 1, 2, default"
|
||||||
"workspaces, 1, 1, default"
|
"workspaces, 1, 1, default"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
dwindle = {
|
dwindle = {
|
||||||
preserve_split = "yes";
|
preserve_split = "yes";
|
||||||
force_split = 2;
|
force_split = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
gesture = [
|
gesture = [
|
||||||
"3, horizontal, workspace"
|
"3, horizontal, workspace"
|
||||||
];
|
];
|
||||||
gestures = {
|
gestures = {
|
||||||
workspace_swipe_invert = false;
|
workspace_swipe_invert = false;
|
||||||
};
|
};
|
||||||
device = [
|
device = [
|
||||||
{
|
{
|
||||||
name = "tpps/2-ibm-trackpoint";
|
name = "tpps/2-ibm-trackpoint";
|
||||||
sensitivity = "+0.5";
|
sensitivity = "+0.5";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "synaptics-tm3276-022";
|
name = "synaptics-tm3276-022";
|
||||||
sensitivity = "+0.5";
|
sensitivity = "+0.5";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
workspace = [
|
workspace = [
|
||||||
"w[tv1], gapsout:0, gapsin:0"
|
"w[tv1], gapsout:0, gapsin:0"
|
||||||
"f[1], gapsout:0, gapsin:0"
|
"f[1], gapsout:0, gapsin:0"
|
||||||
];
|
];
|
||||||
bindr = [
|
bindr = [
|
||||||
"$mainMod, $mainMod, exec, vicinae toggle"
|
"$mainMod, $mainMod, exec, vicinae toggle"
|
||||||
];
|
];
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mainMod, mouse:272, movewindow"
|
"$mainMod, mouse:272, movewindow"
|
||||||
"$mainMod, mouse:273, resizewindow"
|
"$mainMod, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
binde = [
|
binde = [
|
||||||
"$mainMod $altMod, L, resizeactive, 20 0"
|
"$mainMod $altMod, L, resizeactive, 20 0"
|
||||||
"$mainMod $altMod, H, resizeactive, -20 0"
|
"$mainMod $altMod, H, resizeactive, -20 0"
|
||||||
"$mainMod $altMod, K, resizeactive, 0 -20"
|
"$mainMod $altMod, K, resizeactive, 0 -20"
|
||||||
"$mainMod $altMod, J, resizeactive, 0 20"
|
"$mainMod $altMod, J, resizeactive, 0 20"
|
||||||
];
|
];
|
||||||
bind = [
|
bind =
|
||||||
"$mainMod, return, exec, ${launch_terminal}/bin/launch_terminal $(hyprctl activewindow -j | ${jq} .pid)"
|
[
|
||||||
"$mainMod SHIFT, return, exec, ${terminal}"
|
"$mainMod, return, exec, ${launch_terminal}/bin/launch_terminal $(hyprctl activewindow -j | ${jq} .pid)"
|
||||||
"$mainMod, Q, killactive,"
|
"$mainMod SHIFT, return, exec, ${terminal}"
|
||||||
"$mainMod, A, exec, ${nautilus}"
|
"$mainMod, Q, killactive,"
|
||||||
"$mainMod, S, exec, LC_TIME=\"en_GB.UTF-8\" ${gnome-calendar}"
|
"$mainMod, A, exec, ${nautilus}"
|
||||||
"$mainMod, B, exec, Helium"
|
"$mainMod, S, exec, LC_TIME=\"en_GB.UTF-8\" ${gnome-calendar}"
|
||||||
"$mainMod, M, fullscreen, 1"
|
"$mainMod, B, exec, Helium"
|
||||||
"$mainMod, F11, fullscreen"
|
"$mainMod, M, fullscreen, 1"
|
||||||
"$mainMod, F, togglefloating,"
|
"$mainMod, F11, fullscreen"
|
||||||
"$mainMod, SPACE, layoutmsg, togglesplit"
|
"$mainMod, F, togglefloating,"
|
||||||
"CONTROL_L ALT_L, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
"$mainMod, SPACE, layoutmsg, togglesplit"
|
||||||
"$mainMod, C, exec, vicinae vicinae://extensions/vicinae/clipboard/history"
|
"CONTROL_L ALT_L, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||||
"$mainMod, N, exec, vicinae vicinae://extensions/vicinae/wm/switch-windows"
|
"$mainMod, C, exec, vicinae vicinae://extensions/vicinae/clipboard/history"
|
||||||
"$mainMod, Escape, exec, vicinae open -q \"Power Management \""
|
"$mainMod, N, exec, vicinae vicinae://extensions/vicinae/wm/switch-windows"
|
||||||
",XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +10%"
|
"$mainMod, Escape, exec, vicinae open -q \"Power Management \""
|
||||||
",XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
|
",XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +10%"
|
||||||
",XF86AudioRaiseVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 10%+ --limit 1.0"
|
",XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
|
||||||
",XF86AudioLowerVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 10%-"
|
",XF86AudioRaiseVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 10%+ --limit 1.0"
|
||||||
",XF86AudioMicMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
",XF86AudioLowerVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 10%-"
|
||||||
# ",mouse:273, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 1%+ --limit 1.0"
|
",XF86AudioMicMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||||
# ",mouse:272, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 1%-"
|
# ",mouse:273, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 1%+ --limit 1.0"
|
||||||
",XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
# ",mouse:272, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 1%-"
|
||||||
",XF86AudioNext, exec, ${playerctl} next"
|
",XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
",XF86AudioPrev, exec, ${playerctl} previous"
|
",XF86AudioNext, exec, ${playerctl} next"
|
||||||
"$mainMod,XF86AudioMute, exec, ${playerctl} play-pause"
|
",XF86AudioPrev, exec, ${playerctl} previous"
|
||||||
"$mainMod,XF86AudioRaiseVolume, exec, ${playerctl} next"
|
"$mainMod,XF86AudioMute, exec, ${playerctl} play-pause"
|
||||||
"$mainMod,XF86AudioLowerVolume, exec, ${playerctl} previous"
|
"$mainMod,XF86AudioRaiseVolume, exec, ${playerctl} next"
|
||||||
'', Print, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp -d)" - | wl-copy''
|
"$mainMod,XF86AudioLowerVolume, exec, ${playerctl} previous"
|
||||||
'', Pause, exec, systemctl suspend''
|
'', Print, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp -d)" - | wl-copy''
|
||||||
'', XF86Calculator, exec, systemctl suspend''
|
'', Pause, exec, systemctl suspend''
|
||||||
|
'', XF86Calculator, exec, systemctl suspend''
|
||||||
|
|
||||||
"$mainMod, H, exec, ${./files/vim-hypr-nav.sh} l"
|
"$mainMod, H, exec, ${./files/vim-hypr-nav.sh} l"
|
||||||
"$mainMod, L, exec, ${./files/vim-hypr-nav.sh} r"
|
"$mainMod, L, exec, ${./files/vim-hypr-nav.sh} r"
|
||||||
"$mainMod, K, exec, ${./files/vim-hypr-nav.sh} u"
|
"$mainMod, K, exec, ${./files/vim-hypr-nav.sh} u"
|
||||||
"$mainMod, J, exec, ${./files/vim-hypr-nav.sh} d"
|
"$mainMod, J, exec, ${./files/vim-hypr-nav.sh} d"
|
||||||
"$mainMod CONTROL_L, H, swapwindow, l"
|
"$mainMod CONTROL_L, H, swapwindow, l"
|
||||||
"$mainMod CONTROL_L, L, swapwindow, r"
|
"$mainMod CONTROL_L, L, swapwindow, r"
|
||||||
"$mainMod CONTROL_L, K, swapwindow, u"
|
"$mainMod CONTROL_L, K, swapwindow, u"
|
||||||
"$mainMod CONTROL_L, J, swapwindow, d"
|
"$mainMod CONTROL_L, J, swapwindow, d"
|
||||||
"$mainMod SHIFT, H, movewindow, l"
|
"$mainMod SHIFT, H, movewindow, l"
|
||||||
"$mainMod SHIFT, L, movewindow, r"
|
"$mainMod SHIFT, L, movewindow, r"
|
||||||
"$mainMod SHIFT, K, movewindow, u"
|
"$mainMod SHIFT, K, movewindow, u"
|
||||||
"$mainMod SHIFT, J, movewindow, d"
|
"$mainMod SHIFT, J, movewindow, d"
|
||||||
"$mainMod SHIFT, T, ${workspace_command_prefix}movetoworkspace, empty"
|
"$mainMod SHIFT, T, ${workspace_command_prefix}movetoworkspace, empty"
|
||||||
"$mainMod, T, ${workspace_command_prefix}workspace, empty"
|
"$mainMod, T, ${workspace_command_prefix}workspace, empty"
|
||||||
"$mainMod, TAB, ${workspace_command_prefix}workspace, m+1"
|
"$mainMod, TAB, ${workspace_command_prefix}workspace, m+1"
|
||||||
"$mainMod SHIFT, TAB, ${workspace_command_prefix}workspace, m-1"
|
"$mainMod SHIFT, TAB, ${workspace_command_prefix}workspace, m-1"
|
||||||
"$mainMod, Caps_Lock, ${workspace_command_prefix}workspace, m+1"
|
"$mainMod, Caps_Lock, ${workspace_command_prefix}workspace, m+1"
|
||||||
"$mainMod SHIFT, Caps_Lock, ${workspace_command_prefix}workspace, m-1"
|
"$mainMod SHIFT, Caps_Lock, ${workspace_command_prefix}workspace, m-1"
|
||||||
] ++ (
|
]
|
||||||
# workspaces
|
++ (
|
||||||
builtins.concatLists (builtins.genList (x:
|
# workspaces
|
||||||
let
|
builtins.concatLists (builtins.genList (x: let
|
||||||
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
|
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
|
||||||
in
|
in [
|
||||||
[
|
"$mainMod, ${ws}, ${workspace_command_prefix}workspace, ${toString (x + 1)}"
|
||||||
"$mainMod, ${ws}, ${workspace_command_prefix}workspace, ${toString (x + 1)}"
|
"$mainMod SHIFT, ${ws}, ${workspace_command_prefix}movetoworkspace, ${toString (x + 1)}"
|
||||||
"$mainMod SHIFT, ${ws}, ${workspace_command_prefix}movetoworkspace, ${toString (x + 1)}"
|
]) 10)
|
||||||
]) 10));
|
);
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,60 +1,58 @@
|
||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
|
programs.kitty = {
|
||||||
{
|
enable = true;
|
||||||
programs.kitty = {
|
shellIntegration.enableZshIntegration = true;
|
||||||
enable = true;
|
font = {
|
||||||
shellIntegration.enableZshIntegration = true;
|
name = "'ZedMono Nerd Font' style='Extended Light' features=+ss05";
|
||||||
font = {
|
size = lib.mkDefault 13;
|
||||||
name = "'ZedMono Nerd Font' style='Extended Light' features=+ss05";
|
|
||||||
size = lib.mkDefault 13;
|
|
||||||
};
|
|
||||||
keybindings = {
|
|
||||||
"kitty_mod+h" = "kitty_scrollback_nvim";
|
|
||||||
"kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output";
|
|
||||||
"kitty_mod+enter" = "nop";
|
|
||||||
"kitty_mod+equal" = "change_font_size current +1.0";
|
|
||||||
"kitty_mod+minus" = "change_font_size current -1.0";
|
|
||||||
"ctrl+shift+c" = "copy_to_clipboard";
|
|
||||||
"ctrl+shift+v" = "paste_from_clipboard";
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
kitty_mod= "ctrl+alt";
|
|
||||||
cursor_shape = "block";
|
|
||||||
cursor_beam_thickness = 1;
|
|
||||||
scrollback_lines = 100000;
|
|
||||||
scrollback_fill_enlarged_window = "yes";
|
|
||||||
enable_audio_bell = "no";
|
|
||||||
confirm_os_window_close = 0;
|
|
||||||
modify_font = "cell_height 115%";
|
|
||||||
allow_remote_control = "socket-only";
|
|
||||||
listen_on = "unix:/tmp/kitty";
|
|
||||||
shell_integration = "enabled";
|
|
||||||
action_alias = "kitty_scrollback_nvim kitten /home/user/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py";
|
|
||||||
mouse_map = "ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output";
|
|
||||||
|
|
||||||
# Theme
|
|
||||||
background = "#000010";
|
|
||||||
foreground = "#F8F8F2";
|
|
||||||
cursor = "#bbbbbb";
|
|
||||||
selection_background = "#b4d5ff";
|
|
||||||
color0 = "#121212";
|
|
||||||
color8 = "#545454";
|
|
||||||
color1 = "#fa2573";
|
|
||||||
color9 = "#f5669c";
|
|
||||||
color2 = "#97e123";
|
|
||||||
color10 = "#b0e05e";
|
|
||||||
color3 = "#dfd460";
|
|
||||||
color11 = "#fef26c";
|
|
||||||
color4 = "#0f7fcf";
|
|
||||||
color12 = "#00afff";
|
|
||||||
color5 = "#8700ff";
|
|
||||||
color13 = "#af87ff";
|
|
||||||
color6 = "#42a7cf";
|
|
||||||
color14 = "#50cdfe";
|
|
||||||
color7 = "#bbbbbb";
|
|
||||||
color15 = "#ffffff";
|
|
||||||
selection_foreground = "#121212";
|
|
||||||
background_opacity = "0.3";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
keybindings = {
|
||||||
|
"kitty_mod+h" = "kitty_scrollback_nvim";
|
||||||
|
"kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output";
|
||||||
|
"kitty_mod+enter" = "nop";
|
||||||
|
"kitty_mod+equal" = "change_font_size current +1.0";
|
||||||
|
"kitty_mod+minus" = "change_font_size current -1.0";
|
||||||
|
"ctrl+shift+c" = "copy_to_clipboard";
|
||||||
|
"ctrl+shift+v" = "paste_from_clipboard";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
kitty_mod = "ctrl+alt";
|
||||||
|
cursor_shape = "block";
|
||||||
|
cursor_beam_thickness = 1;
|
||||||
|
scrollback_lines = 100000;
|
||||||
|
scrollback_fill_enlarged_window = "yes";
|
||||||
|
enable_audio_bell = "no";
|
||||||
|
confirm_os_window_close = 0;
|
||||||
|
modify_font = "cell_height 115%";
|
||||||
|
allow_remote_control = "socket-only";
|
||||||
|
listen_on = "unix:/tmp/kitty";
|
||||||
|
shell_integration = "enabled";
|
||||||
|
action_alias = "kitty_scrollback_nvim kitten /home/user/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py";
|
||||||
|
mouse_map = "ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output";
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
background = "#000010";
|
||||||
|
foreground = "#F8F8F2";
|
||||||
|
cursor = "#bbbbbb";
|
||||||
|
selection_background = "#b4d5ff";
|
||||||
|
color0 = "#121212";
|
||||||
|
color8 = "#545454";
|
||||||
|
color1 = "#fa2573";
|
||||||
|
color9 = "#f5669c";
|
||||||
|
color2 = "#97e123";
|
||||||
|
color10 = "#b0e05e";
|
||||||
|
color3 = "#dfd460";
|
||||||
|
color11 = "#fef26c";
|
||||||
|
color4 = "#0f7fcf";
|
||||||
|
color12 = "#00afff";
|
||||||
|
color5 = "#8700ff";
|
||||||
|
color13 = "#af87ff";
|
||||||
|
color6 = "#42a7cf";
|
||||||
|
color14 = "#50cdfe";
|
||||||
|
color7 = "#bbbbbb";
|
||||||
|
color15 = "#ffffff";
|
||||||
|
selection_foreground = "#121212";
|
||||||
|
background_opacity = "0.3";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,22 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file."${config.xdg.configHome}/lf" = {
|
config,
|
||||||
source = ./files;
|
pkgs,
|
||||||
recursive = true;
|
...
|
||||||
};
|
}: {
|
||||||
programs.lf = {
|
home.file."${config.xdg.configHome}/lf" = {
|
||||||
enable = true;
|
source = ./files;
|
||||||
settings = {
|
recursive = true;
|
||||||
icons = true;
|
};
|
||||||
autoquit = true;
|
programs.lf = {
|
||||||
mouse = true;
|
enable = true;
|
||||||
number = true;
|
settings = {
|
||||||
relativenumber = true;
|
icons = true;
|
||||||
cursorpreviewfmt = "";
|
autoquit = true;
|
||||||
previewer = toString (pkgs.writeShellScript "script" ''
|
mouse = true;
|
||||||
|
number = true;
|
||||||
|
relativenumber = true;
|
||||||
|
cursorpreviewfmt = "";
|
||||||
|
previewer = toString (pkgs.writeShellScript "script" ''
|
||||||
case "''$1" in
|
case "''$1" in
|
||||||
*.tar*) tar tf "''$1";;
|
*.tar*) tar tf "''$1";;
|
||||||
*.zip) unzip -l "''$1";;
|
*.zip) unzip -l "''$1";;
|
||||||
|
|
@ -23,25 +25,25 @@
|
||||||
*.pdf) ${pkgs.poppler-utils}/bin/pdftotext "''$1" -;;
|
*.pdf) ${pkgs.poppler-utils}/bin/pdftotext "''$1" -;;
|
||||||
*) ${pkgs.highlight}/bin/highlight -O ansi "''$1";;
|
*) ${pkgs.highlight}/bin/highlight -O ansi "''$1";;
|
||||||
esac
|
esac
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"<backspace2>" = "quit";
|
"<backspace2>" = "quit";
|
||||||
"<c-e>" = "half-up";
|
"<c-e>" = "half-up";
|
||||||
"." = "set hidden!";
|
"." = "set hidden!";
|
||||||
"o" = ''$nvim -c "lua require(\"oil\").open(\"$PWD\")"'';
|
"o" = ''$nvim -c "lua require(\"oil\").open(\"$PWD\")"'';
|
||||||
"-" = ''$nvim -c "lua require(\"oil\").open(\"$PWD\")"'';
|
"-" = ''$nvim -c "lua require(\"oil\").open(\"$PWD\")"'';
|
||||||
"<enter>" = "open";
|
"<enter>" = "open";
|
||||||
"<c-t>" = ":jump <enter>";
|
"<c-t>" = ":jump <enter>";
|
||||||
};
|
};
|
||||||
commands = {
|
commands = {
|
||||||
jump = ''
|
jump = ''
|
||||||
''${{
|
''${{
|
||||||
res=$(zsh -c "source ${../zsh/files/functions.zsh} && find_global d")
|
res=$(zsh -c "source ${../zsh/files/functions.zsh} && find_global d")
|
||||||
lf -remote "send $id cd \"$res\""
|
lf -remote "send $id cd \"$res\""
|
||||||
}}
|
}}
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
cmdKeybindings = { q = "quit"; };
|
|
||||||
};
|
};
|
||||||
|
cmdKeybindings = {q = "quit";};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file."${config.xdg.configHome}/mpv" = {
|
config,
|
||||||
source = ./files;
|
pkgs,
|
||||||
recursive = true;
|
...
|
||||||
};
|
}: {
|
||||||
programs.mpv = { enable = true; };
|
home.file."${config.xdg.configHome}/mpv" = {
|
||||||
|
source = ./files;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
programs.mpv = {enable = true;};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,54 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config,
|
||||||
# codeium
|
pkgs,
|
||||||
nixd
|
...
|
||||||
clang-tools
|
}: {
|
||||||
llvmPackages.libcxxClang
|
home.packages = with pkgs; [
|
||||||
go
|
# codeium
|
||||||
nodejs
|
nixd
|
||||||
luarocks
|
clang-tools
|
||||||
jre
|
llvmPackages.libcxxClang
|
||||||
python313Packages.pip
|
go
|
||||||
python313Packages.debugpy
|
nodejs
|
||||||
unzip
|
luarocks
|
||||||
dotnet-sdk_8
|
jre
|
||||||
cargo
|
python313Packages.pip
|
||||||
neovim-unwrapped
|
python313Packages.debugpy
|
||||||
tree-sitter
|
unzip
|
||||||
|
dotnet-sdk_8
|
||||||
|
cargo
|
||||||
|
neovim-unwrapped
|
||||||
|
tree-sitter
|
||||||
|
|
||||||
# LSPs
|
# LSPs
|
||||||
texlab
|
texlab
|
||||||
ltex-ls
|
ltex-ls
|
||||||
basedpyright
|
basedpyright
|
||||||
# mypy
|
# mypy
|
||||||
cmake-language-server
|
cmake-language-server
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
yaml-language-server
|
yaml-language-server
|
||||||
bash-language-server
|
bash-language-server
|
||||||
docker-compose-language-service
|
docker-compose-language-service
|
||||||
dockerfile-language-server
|
dockerfile-language-server
|
||||||
lua-language-server
|
lua-language-server
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
gopls
|
gopls
|
||||||
# deno
|
# deno
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
jdt-language-server
|
jdt-language-server
|
||||||
emmet-ls
|
emmet-ls
|
||||||
ruff
|
ruff
|
||||||
csharp-ls
|
csharp-ls
|
||||||
tinymist
|
tinymist
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file."${config.xdg.configHome}/nvim" = {
|
home.file."${config.xdg.configHome}/nvim" = {
|
||||||
source = ./files;
|
source = ./files;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".clang-tidy".text = ''
|
home.file.".clang-tidy".text = ''
|
||||||
Checks: "*,
|
Checks: "*,
|
||||||
-abseil-*,
|
-abseil-*,
|
||||||
-altera-*,
|
-altera-*,
|
||||||
|
|
@ -78,8 +80,8 @@
|
||||||
WarningsAsErrors: '''
|
WarningsAsErrors: '''
|
||||||
HeaderFilterRegex: '''
|
HeaderFilterRegex: '''
|
||||||
FormatStyle: none
|
FormatStyle: none
|
||||||
'';
|
'';
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,128 +1,130 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ papirus-icon-theme ];
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [papirus-icon-theme];
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi;
|
package = pkgs.rofi;
|
||||||
font = "SF Pro Rounded 13";
|
font = "SF Pro Rounded 13";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
icon-theme = "Papirus";
|
icon-theme = "Papirus";
|
||||||
kb-cancel = "Super_L+XF86Launch5,Escape";
|
kb-cancel = "Super_L+XF86Launch5,Escape";
|
||||||
combi-hide-mode-prefix = true;
|
combi-hide-mode-prefix = true;
|
||||||
};
|
|
||||||
theme =
|
|
||||||
let inherit (config.lib.formats.rasi) mkLiteral;
|
|
||||||
in {
|
|
||||||
"*" = {
|
|
||||||
background = mkLiteral "#0f111a";
|
|
||||||
foreground = mkLiteral "#f1f1f1";
|
|
||||||
selected = mkLiteral "#0033a1";
|
|
||||||
selected-text = mkLiteral "#ffffff";
|
|
||||||
};
|
|
||||||
|
|
||||||
"window" = {
|
|
||||||
transparency = "real";
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
width = mkLiteral "800px";
|
|
||||||
border-radius = mkLiteral "5px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"textbox-prompt-colon" = {
|
|
||||||
expand = mkLiteral "false";
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
padding = mkLiteral "4px 0px 0px 6px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"inputbar" = {
|
|
||||||
children = mkLiteral "[ textbox-prompt-colon, entry ]";
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
expand = mkLiteral "false";
|
|
||||||
border = mkLiteral "0px 0px 0px 0px";
|
|
||||||
border-radius = mkLiteral "0px";
|
|
||||||
border-color = mkLiteral "@selected";
|
|
||||||
margin = mkLiteral "0px 0px 0px 0px";
|
|
||||||
padding = mkLiteral "0px 0px 4px 0px";
|
|
||||||
position = mkLiteral "center";
|
|
||||||
};
|
|
||||||
|
|
||||||
"entry" = {
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
placeholder-color = mkLiteral "@foreground";
|
|
||||||
expand = mkLiteral "true";
|
|
||||||
horizontal-align = mkLiteral "0";
|
|
||||||
blink = mkLiteral "true";
|
|
||||||
padding = mkLiteral "4px 0px 0px 4px";
|
|
||||||
font = "SF Pro Rounded 25";
|
|
||||||
};
|
|
||||||
|
|
||||||
"case-indicator" = {
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
spacing = mkLiteral "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
"listview" = {
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
columns = mkLiteral "1";
|
|
||||||
spacing = mkLiteral "5px";
|
|
||||||
cycle = mkLiteral "true";
|
|
||||||
dynamic = mkLiteral "true";
|
|
||||||
layout = mkLiteral "vertical";
|
|
||||||
fixed-height = "true";
|
|
||||||
lines = mkLiteral "5";
|
|
||||||
};
|
|
||||||
|
|
||||||
"mainbox" = {
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
children = mkLiteral "[ inputbar, message, listview ]";
|
|
||||||
spacing = mkLiteral "20px";
|
|
||||||
padding = mkLiteral "20px 15px 15px 15px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"message" = {
|
|
||||||
children = mkLiteral "[ textbox ]";
|
|
||||||
border-radius = mkLiteral "5px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"textbox" = {
|
|
||||||
background-color = mkLiteral "@selected";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
padding = mkLiteral "20px 6px 20px 80px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"element" = {
|
|
||||||
background-color = mkLiteral "@background";
|
|
||||||
text-color = mkLiteral "@foreground";
|
|
||||||
orientation = mkLiteral "horizontal";
|
|
||||||
border-radius = mkLiteral "4px";
|
|
||||||
padding = mkLiteral "2px 2px 2px 2px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"element-text, element-icon" = {
|
|
||||||
background-color = mkLiteral "inherit";
|
|
||||||
text-color = mkLiteral "inherit";
|
|
||||||
};
|
|
||||||
|
|
||||||
"element-icon" = {
|
|
||||||
size = mkLiteral "40px";
|
|
||||||
padding = mkLiteral "10px 10px 10px 10px";
|
|
||||||
};
|
|
||||||
|
|
||||||
"element-text" = { padding = mkLiteral "20px 0px 0px 10px"; };
|
|
||||||
|
|
||||||
"element selected" = {
|
|
||||||
background-color = mkLiteral "@selected";
|
|
||||||
text-color = mkLiteral "@selected-text";
|
|
||||||
border = mkLiteral "0px";
|
|
||||||
border-radius = mkLiteral "3px";
|
|
||||||
border-color = mkLiteral "@selected";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
theme = let
|
||||||
|
inherit (config.lib.formats.rasi) mkLiteral;
|
||||||
|
in {
|
||||||
|
"*" = {
|
||||||
|
background = mkLiteral "#0f111a";
|
||||||
|
foreground = mkLiteral "#f1f1f1";
|
||||||
|
selected = mkLiteral "#0033a1";
|
||||||
|
selected-text = mkLiteral "#ffffff";
|
||||||
|
};
|
||||||
|
|
||||||
|
"window" = {
|
||||||
|
transparency = "real";
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
width = mkLiteral "800px";
|
||||||
|
border-radius = mkLiteral "5px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"textbox-prompt-colon" = {
|
||||||
|
expand = mkLiteral "false";
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
padding = mkLiteral "4px 0px 0px 6px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"inputbar" = {
|
||||||
|
children = mkLiteral "[ textbox-prompt-colon, entry ]";
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
expand = mkLiteral "false";
|
||||||
|
border = mkLiteral "0px 0px 0px 0px";
|
||||||
|
border-radius = mkLiteral "0px";
|
||||||
|
border-color = mkLiteral "@selected";
|
||||||
|
margin = mkLiteral "0px 0px 0px 0px";
|
||||||
|
padding = mkLiteral "0px 0px 4px 0px";
|
||||||
|
position = mkLiteral "center";
|
||||||
|
};
|
||||||
|
|
||||||
|
"entry" = {
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
placeholder-color = mkLiteral "@foreground";
|
||||||
|
expand = mkLiteral "true";
|
||||||
|
horizontal-align = mkLiteral "0";
|
||||||
|
blink = mkLiteral "true";
|
||||||
|
padding = mkLiteral "4px 0px 0px 4px";
|
||||||
|
font = "SF Pro Rounded 25";
|
||||||
|
};
|
||||||
|
|
||||||
|
"case-indicator" = {
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
spacing = mkLiteral "0";
|
||||||
|
};
|
||||||
|
|
||||||
|
"listview" = {
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
columns = mkLiteral "1";
|
||||||
|
spacing = mkLiteral "5px";
|
||||||
|
cycle = mkLiteral "true";
|
||||||
|
dynamic = mkLiteral "true";
|
||||||
|
layout = mkLiteral "vertical";
|
||||||
|
fixed-height = "true";
|
||||||
|
lines = mkLiteral "5";
|
||||||
|
};
|
||||||
|
|
||||||
|
"mainbox" = {
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
children = mkLiteral "[ inputbar, message, listview ]";
|
||||||
|
spacing = mkLiteral "20px";
|
||||||
|
padding = mkLiteral "20px 15px 15px 15px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"message" = {
|
||||||
|
children = mkLiteral "[ textbox ]";
|
||||||
|
border-radius = mkLiteral "5px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"textbox" = {
|
||||||
|
background-color = mkLiteral "@selected";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
padding = mkLiteral "20px 6px 20px 80px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"element" = {
|
||||||
|
background-color = mkLiteral "@background";
|
||||||
|
text-color = mkLiteral "@foreground";
|
||||||
|
orientation = mkLiteral "horizontal";
|
||||||
|
border-radius = mkLiteral "4px";
|
||||||
|
padding = mkLiteral "2px 2px 2px 2px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"element-text, element-icon" = {
|
||||||
|
background-color = mkLiteral "inherit";
|
||||||
|
text-color = mkLiteral "inherit";
|
||||||
|
};
|
||||||
|
|
||||||
|
"element-icon" = {
|
||||||
|
size = mkLiteral "40px";
|
||||||
|
padding = mkLiteral "10px 10px 10px 10px";
|
||||||
|
};
|
||||||
|
|
||||||
|
"element-text" = {padding = mkLiteral "20px 0px 0px 10px";};
|
||||||
|
|
||||||
|
"element selected" = {
|
||||||
|
background-color = mkLiteral "@selected";
|
||||||
|
text-color = mkLiteral "@selected-text";
|
||||||
|
border = mkLiteral "0px";
|
||||||
|
border-radius = mkLiteral "3px";
|
||||||
|
border-color = mkLiteral "@selected";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,90 +1,93 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
inputs,
|
||||||
enable = true;
|
config,
|
||||||
enableDefaultConfig = false;
|
pkgs,
|
||||||
matchBlocks = {
|
...
|
||||||
"*" = {
|
}: {
|
||||||
host = "*";
|
programs.ssh = {
|
||||||
};
|
enable = true;
|
||||||
mallorea = {
|
enableDefaultConfig = false;
|
||||||
host = "mallorea";
|
matchBlocks = {
|
||||||
hostname = "server.thomasave.be";
|
"*" = {
|
||||||
port = 22;
|
host = "*";
|
||||||
user = "server";
|
};
|
||||||
forwardAgent = true;
|
mallorea = {
|
||||||
};
|
host = "mallorea";
|
||||||
Mallorea = {
|
hostname = "server.thomasave.be";
|
||||||
host = "Mallorea";
|
port = 22;
|
||||||
hostname = "server.thomasave.be";
|
user = "server";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "server";
|
};
|
||||||
forwardAgent = true;
|
Mallorea = {
|
||||||
};
|
host = "Mallorea";
|
||||||
Kell = {
|
hostname = "server.thomasave.be";
|
||||||
host = "Kell";
|
port = 22;
|
||||||
hostname = "kell.thomasave.be";
|
user = "server";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
Kell = {
|
||||||
};
|
host = "Kell";
|
||||||
kell = {
|
hostname = "kell.thomasave.be";
|
||||||
host = "kell";
|
port = 22;
|
||||||
hostname = "kell.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
kell = {
|
||||||
};
|
host = "kell";
|
||||||
Riva = {
|
hostname = "kell.thomasave.be";
|
||||||
host = "Riva";
|
port = 22;
|
||||||
hostname = "riva.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
Riva = {
|
||||||
};
|
host = "Riva";
|
||||||
riva = {
|
hostname = "riva.thomasave.be";
|
||||||
host = "riva";
|
port = 22;
|
||||||
hostname = "riva.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
riva = {
|
||||||
};
|
host = "riva";
|
||||||
Arch = {
|
hostname = "riva.thomasave.be";
|
||||||
host = "Arch";
|
port = 22;
|
||||||
hostname = "arch.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
Arch = {
|
||||||
};
|
host = "Arch";
|
||||||
arch = {
|
hostname = "arch.thomasave.be";
|
||||||
host = "arch";
|
port = 22;
|
||||||
hostname = "arch.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
arch = {
|
||||||
};
|
host = "arch";
|
||||||
Vault = {
|
hostname = "arch.thomasave.be";
|
||||||
host = "Vault";
|
port = 22;
|
||||||
hostname = "etienne.thomasave.be";
|
user = "user";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "server";
|
};
|
||||||
forwardAgent = true;
|
Vault = {
|
||||||
};
|
host = "Vault";
|
||||||
vault = {
|
hostname = "etienne.thomasave.be";
|
||||||
host = "vault";
|
port = 22;
|
||||||
hostname = "etienne.thomasave.be";
|
user = "server";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "server";
|
};
|
||||||
forwardAgent = true;
|
vault = {
|
||||||
};
|
host = "vault";
|
||||||
gcp = {
|
hostname = "etienne.thomasave.be";
|
||||||
host = "gcp";
|
port = 22;
|
||||||
hostname = "34.126.140.76";
|
user = "server";
|
||||||
port = 22;
|
forwardAgent = true;
|
||||||
user = "user";
|
};
|
||||||
forwardAgent = true;
|
gcp = {
|
||||||
};
|
host = "gcp";
|
||||||
};
|
hostname = "34.126.140.76";
|
||||||
|
port = 22;
|
||||||
|
user = "user";
|
||||||
|
forwardAgent = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,63 +1,62 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
programs.tmux = {
|
||||||
programs.tmux = {
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
terminal = "screen-256color";
|
||||||
terminal = "screen-256color";
|
enable = true;
|
||||||
enable = true;
|
clock24 = true;
|
||||||
clock24 = true;
|
shortcut = "a";
|
||||||
shortcut = "a";
|
escapeTime = 0;
|
||||||
escapeTime = 0;
|
newSession = true;
|
||||||
newSession = true;
|
mouse = true;
|
||||||
mouse = true;
|
keyMode = "vi";
|
||||||
keyMode = "vi";
|
plugins = [
|
||||||
plugins = [
|
pkgs.tmuxPlugins.vim-tmux-navigator
|
||||||
pkgs.tmuxPlugins.vim-tmux-navigator
|
pkgs.tmuxPlugins.better-mouse-mode
|
||||||
pkgs.tmuxPlugins.better-mouse-mode
|
pkgs.tmuxPlugins.yank
|
||||||
pkgs.tmuxPlugins.yank
|
{
|
||||||
{
|
plugin = pkgs.tmuxPlugins.catppuccin;
|
||||||
plugin = pkgs.tmuxPlugins.catppuccin;
|
|
||||||
extraConfig = ''
|
|
||||||
set -ogq @catppuccin_flavor "mocha"
|
|
||||||
set -ogq @catppuccin_window_status_style "rounded"
|
|
||||||
set -ogq @catppuccin_pane_border_style "fg=#181825"
|
|
||||||
set -ogq @catppuccin_pane_active_border_style "fg=#023269"
|
|
||||||
set -ogq @catppuccin_menu_selected_style "fg=#{@thm_gray},bg=#0F7FCF"
|
|
||||||
set -g @catppuccin_window_current_number_color "#0F7FCF"
|
|
||||||
set -g @catppuccin_window_current_text_color "#1F2430"
|
|
||||||
set -g @catppuccin_window_text_color "#1F2430"
|
|
||||||
set -g @catppuccin_window_number_color "#707072"
|
|
||||||
set -ogq status-right "#{E:@catppuccin_status_directory}"
|
|
||||||
|
|
||||||
# Make the status line pretty and add some modules
|
|
||||||
set -g status-right-length 100
|
|
||||||
set -g status-left-length 100
|
|
||||||
set -g status-left ""
|
|
||||||
set -g status-right "#{E:@catppuccin_status_application}"
|
|
||||||
set -ag status-right "#{E:@catppuccin_status_session}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -ag terminal-overrides ",screen-256color:Tc"
|
set -ogq @catppuccin_flavor "mocha"
|
||||||
set-window-option -g mode-keys vi
|
set -ogq @catppuccin_window_status_style "rounded"
|
||||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
set -ogq @catppuccin_pane_border_style "fg=#181825"
|
||||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
set -ogq @catppuccin_pane_active_border_style "fg=#023269"
|
||||||
|
set -ogq @catppuccin_menu_selected_style "fg=#{@thm_gray},bg=#0F7FCF"
|
||||||
|
set -g @catppuccin_window_current_number_color "#0F7FCF"
|
||||||
|
set -g @catppuccin_window_current_text_color "#1F2430"
|
||||||
|
set -g @catppuccin_window_text_color "#1F2430"
|
||||||
|
set -g @catppuccin_window_number_color "#707072"
|
||||||
|
set -ogq status-right "#{E:@catppuccin_status_directory}"
|
||||||
|
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
# Make the status line pretty and add some modules
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
set -g status-right-length 100
|
||||||
bind c new-window -c "#{pane_current_path}"
|
set -g status-left-length 100
|
||||||
unbind '"'
|
set -g status-left ""
|
||||||
unbind %
|
set -g status-right "#{E:@catppuccin_status_application}"
|
||||||
|
set -ag status-right "#{E:@catppuccin_status_session}"
|
||||||
# Renumber windows starting from 1
|
|
||||||
set -g base-index 1
|
|
||||||
setw -g pane-base-index 1
|
|
||||||
set-option -g renumber-windows on
|
|
||||||
|
|
||||||
# Transparent bar
|
|
||||||
set -g status-bg default
|
|
||||||
set -g status-style "bg=default"
|
|
||||||
'';
|
'';
|
||||||
};
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
set -ag terminal-overrides ",screen-256color:Tc"
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||||
|
|
||||||
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
# Renumber windows starting from 1
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
|
# Transparent bar
|
||||||
|
set -g status-bg default
|
||||||
|
set -g status-style "bg=default"
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,54 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ../zsh { inherit inputs config pkgs; })
|
config,
|
||||||
(import ../bash { inherit inputs config pkgs; })
|
pkgs,
|
||||||
../git
|
...
|
||||||
../nvim
|
}: {
|
||||||
../email
|
imports = [
|
||||||
../lf
|
(import ../zsh {inherit inputs config pkgs;})
|
||||||
../tmux
|
(import ../bash {inherit inputs config pkgs;})
|
||||||
../yazi
|
../git
|
||||||
../zellij
|
../nvim
|
||||||
];
|
../email
|
||||||
|
../lf
|
||||||
|
../tmux
|
||||||
|
../yazi
|
||||||
|
../zellij
|
||||||
|
];
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux.enable = true;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
htop
|
htop
|
||||||
ghostscript
|
ghostscript
|
||||||
waypipe
|
waypipe
|
||||||
inputs.worktimer.packages.${pkgs.stdenv.hostPlatform.system}.default
|
inputs.worktimer.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
usbutils
|
usbutils
|
||||||
gocryptfs
|
gocryptfs
|
||||||
sshfs
|
sshfs
|
||||||
ncdu
|
ncdu
|
||||||
];
|
];
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
XDG_CONFIG_HOME = "${config.xdg.configHome}";
|
XDG_CONFIG_HOME = "${config.xdg.configHome}";
|
||||||
XDG_CACHE_HOME = "${config.xdg.cacheHome}";
|
XDG_CACHE_HOME = "${config.xdg.cacheHome}";
|
||||||
XDG_DATA_HOME = "${config.xdg.dataHome}";
|
XDG_DATA_HOME = "${config.xdg.dataHome}";
|
||||||
XDG_STATE_HOME = "${config.xdg.stateHome}";
|
XDG_STATE_HOME = "${config.xdg.stateHome}";
|
||||||
|
|
||||||
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
|
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
|
||||||
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
|
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
|
||||||
LESSHISTFILE = "${config.xdg.cacheHome}/less/history";
|
LESSHISTFILE = "${config.xdg.cacheHome}/less/history";
|
||||||
PARALLEL_HOME = "${config.xdg.configHome}/parallel";
|
PARALLEL_HOME = "${config.xdg.configHome}/parallel";
|
||||||
PYTHONSTARTUP = "${config.xdg.configHome}/python/pythonrc";
|
PYTHONSTARTUP = "${config.xdg.configHome}/python/pythonrc";
|
||||||
SQLITE_HISTORY = "${config.xdg.cacheHome}/sqlite_history";
|
SQLITE_HISTORY = "${config.xdg.cacheHome}/sqlite_history";
|
||||||
WINEPREFIX = "${config.xdg.dataHome}/wine";
|
WINEPREFIX = "${config.xdg.dataHome}/wine";
|
||||||
# XDG_CURRENT_DESKTOP = "GNOME";
|
# XDG_CURRENT_DESKTOP = "GNOME";
|
||||||
OPENCV_LOG_LEVEL = "ERROR";
|
OPENCV_LOG_LEVEL = "ERROR";
|
||||||
COLORTERM = "truecolor";
|
COLORTERM = "truecolor";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".latexmkrc".text = ''
|
|
||||||
$pdf_mode = 1;
|
|
||||||
$pdf_previewer = 'evince %O %S';
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
home.file.".latexmkrc".text = ''
|
||||||
|
$pdf_mode = 1;
|
||||||
|
$pdf_previewer = 'evince %O %S';
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,109 +1,113 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ./common.nix { inherit inputs config pkgs; })
|
config,
|
||||||
(import ./python.nix { inherit inputs config pkgs; })
|
pkgs,
|
||||||
(import ../hyprland { inherit inputs pkgs; })
|
...
|
||||||
(import ../ags { inherit inputs pkgs; })
|
}: {
|
||||||
../rofi
|
imports = [
|
||||||
../vicinae
|
(import ./common.nix {inherit inputs config pkgs;})
|
||||||
../alacritty
|
(import ./python.nix {inherit inputs config pkgs;})
|
||||||
../foot
|
(import ../hyprland {inherit inputs pkgs;})
|
||||||
../kitty
|
(import ../ags {inherit inputs pkgs;})
|
||||||
../firefox
|
../rofi
|
||||||
../helium
|
../vicinae
|
||||||
../ssh
|
../alacritty
|
||||||
../mpv
|
../foot
|
||||||
];
|
../kitty
|
||||||
|
../firefox
|
||||||
|
../helium
|
||||||
|
../ssh
|
||||||
|
../mpv
|
||||||
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
spotify
|
spotify
|
||||||
slack
|
slack
|
||||||
eid-mw
|
eid-mw
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
libreoffice
|
libreoffice
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
iwgtk
|
iwgtk
|
||||||
element-desktop
|
element-desktop
|
||||||
evince
|
evince
|
||||||
loupe
|
loupe
|
||||||
gimp3
|
gimp3
|
||||||
obs-studio
|
obs-studio
|
||||||
inkscape
|
inkscape
|
||||||
gnome-calendar
|
gnome-calendar
|
||||||
file-roller
|
file-roller
|
||||||
zip
|
zip
|
||||||
heroic
|
heroic
|
||||||
cmake
|
cmake
|
||||||
nmap
|
nmap
|
||||||
arp-scan
|
arp-scan
|
||||||
virt-manager
|
virt-manager
|
||||||
wol
|
wol
|
||||||
dig
|
dig
|
||||||
file
|
file
|
||||||
zip
|
zip
|
||||||
yubioath-flutter
|
yubioath-flutter
|
||||||
obsidian
|
obsidian
|
||||||
nautilus
|
nautilus
|
||||||
appimage-run
|
appimage-run
|
||||||
];
|
];
|
||||||
|
|
||||||
services.kdeconnect = {
|
services.kdeconnect = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.kdePackages.kdeconnect-kde;
|
package = pkgs.kdePackages.kdeconnect-kde;
|
||||||
indicator = true;
|
indicator = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default.isDefault = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
package = pkgs.gnome-themes-extra;
|
||||||
|
name = "Adwaita-dark";
|
||||||
};
|
};
|
||||||
|
iconTheme = {
|
||||||
programs.thunderbird = {
|
name = "Papirus";
|
||||||
enable = true;
|
package = pkgs.papirus-icon-theme;
|
||||||
profiles.default.isDefault = true;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
gtk = {
|
home.pointerCursor = {
|
||||||
enable = true;
|
gtk.enable = true;
|
||||||
theme = {
|
name = "Adwaita";
|
||||||
package = pkgs.gnome-themes-extra;
|
size = 28;
|
||||||
name = "Adwaita-dark";
|
package = pkgs.adwaita-icon-theme;
|
||||||
};
|
};
|
||||||
iconTheme = {
|
|
||||||
name = "Papirus";
|
services.mpris-proxy.enable = true; # Bluetooth media control
|
||||||
package = pkgs.papirus-icon-theme;
|
|
||||||
};
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"x-scheme-handler/mailto" = "userapp-Thunderbird-7GETV2.desktop";
|
||||||
|
"x-scheme-handler/mid" = "userapp-Thunderbird-7GETV2.desktop";
|
||||||
|
"x-scheme-handler/tonsite" = "org.telegram.desktop.desktop";
|
||||||
|
"message/rfc822" = "userapp-Thunderbird-7GETV2.desktop";
|
||||||
|
"application/pdf" = "org.gnome.Evince.desktop";
|
||||||
|
"x-scheme-handler/tg" = "org.telegram.desktop.desktop";
|
||||||
|
"video/*" = "mpv.desktop";
|
||||||
|
"audio/*" = "mpv.desktop";
|
||||||
|
"image/jpeg" = "org.gnome.Loupe.desktop";
|
||||||
|
"image/png" = "org.gnome.Loupe.desktop";
|
||||||
};
|
};
|
||||||
|
associations.added = {
|
||||||
home.pointerCursor = {
|
"x-scheme-handler/tg" = "org.telegram.desktop.desktop";
|
||||||
gtk.enable = true;
|
"x-scheme-handler/mailto" = "userapp-Thunderbird-7GETV2.desktop";
|
||||||
name = "Adwaita";
|
"x-scheme-handler/mid" = "userapp-Thunderbird-7GETV2.desktop";
|
||||||
size = 28;
|
"x-scheme-handler/tonsite" = "org.telegram.desktop.desktop";
|
||||||
package = pkgs.adwaita-icon-theme;
|
"image/jpeg" = "org.gnome.Loupe.desktop";
|
||||||
|
"image/png" = "org.gnome.Loupe.desktop";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.mpris-proxy.enable = true; # Bluetooth media control
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
xdg.mimeApps = {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications = {
|
|
||||||
"x-scheme-handler/mailto" = "userapp-Thunderbird-7GETV2.desktop";
|
|
||||||
"x-scheme-handler/mid" = "userapp-Thunderbird-7GETV2.desktop";
|
|
||||||
"x-scheme-handler/tonsite" = "org.telegram.desktop.desktop";
|
|
||||||
"message/rfc822" = "userapp-Thunderbird-7GETV2.desktop";
|
|
||||||
"application/pdf" = "org.gnome.Evince.desktop";
|
|
||||||
"x-scheme-handler/tg" = "org.telegram.desktop.desktop";
|
|
||||||
"video/*" = "mpv.desktop";
|
|
||||||
"audio/*" = "mpv.desktop";
|
|
||||||
"image/jpeg" = "org.gnome.Loupe.desktop";
|
|
||||||
"image/png" = "org.gnome.Loupe.desktop";
|
|
||||||
};
|
|
||||||
associations.added = {
|
|
||||||
"x-scheme-handler/tg" = "org.telegram.desktop.desktop";
|
|
||||||
"x-scheme-handler/mailto" = "userapp-Thunderbird-7GETV2.desktop";
|
|
||||||
"x-scheme-handler/mid" = "userapp-Thunderbird-7GETV2.desktop";
|
|
||||||
"x-scheme-handler/tonsite" = "org.telegram.desktop.desktop";
|
|
||||||
"image/jpeg" = "org.gnome.Loupe.desktop";
|
|
||||||
"image/png" = "org.gnome.Loupe.desktop";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{ pkgs }:
|
{pkgs}: {
|
||||||
{
|
when = "*-*-* *:00:00";
|
||||||
when = "*-*-* *:00:00";
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
script = toString (pkgs.writeShellScript "script" ''
|
|
||||||
REPORT_EMAIL=email@thomasave.be
|
REPORT_EMAIL=email@thomasave.be
|
||||||
ZPOOL_STATUS=$(zpool status -x)
|
ZPOOL_STATUS=$(zpool status -x)
|
||||||
if [ "$ZPOOL_STATUS" = "all pools are healthy" ] || [ "$ZPOOL_STATUS" = "no pools available" ]
|
if [ "$ZPOOL_STATUS" = "all pools are healthy" ] || [ "$ZPOOL_STATUS" = "no pools available" ]
|
||||||
|
|
@ -14,5 +13,5 @@
|
||||||
printf 1 > /var/db/zpool.status
|
printf 1 > /var/db/zpool.status
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'');
|
'');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{ config, pkgs, fzgo_paths }:
|
{
|
||||||
let
|
config,
|
||||||
mkLink = source_path: file_type: {
|
pkgs,
|
||||||
"${source_path}-${file_type}" = {
|
fzgo_paths,
|
||||||
source = config.lib.file.mkOutOfStoreSymlink source_path;
|
}: let
|
||||||
target = ".config/fzgo/entries/${file_type}/${pkgs.lib.strings.replaceStrings [ "/" ] [ "|" ] source_path}";
|
mkLink = source_path: file_type: {
|
||||||
};
|
"${source_path}-${file_type}" = {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink source_path;
|
||||||
|
target = ".config/fzgo/entries/${file_type}/${pkgs.lib.strings.replaceStrings ["/"] ["|"] source_path}";
|
||||||
};
|
};
|
||||||
links = (map (source_path: mkLink source_path "f") fzgo_paths.files) ++ (map (source_path: mkLink source_path "d") fzgo_paths.dirs);
|
};
|
||||||
|
links = (map (source_path: mkLink source_path "f") fzgo_paths.files) ++ (map (source_path: mkLink source_path "d") fzgo_paths.dirs);
|
||||||
in {
|
in {
|
||||||
home.file = pkgs.lib.mkMerge links;
|
home.file = pkgs.lib.mkMerge links;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,42 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: let
|
||||||
let
|
pythonldlibpath = pkgs.lib.makeLibraryPath (with pkgs; [
|
||||||
pythonldlibpath = pkgs.lib.makeLibraryPath (with pkgs; [
|
libGL
|
||||||
libGL
|
glib
|
||||||
glib
|
zlib
|
||||||
zlib
|
zstd
|
||||||
zstd
|
stdenv.cc.cc
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc.lib
|
||||||
stdenv.cc.cc.lib
|
curl
|
||||||
curl
|
openssl
|
||||||
openssl
|
attr
|
||||||
attr
|
libssh
|
||||||
libssh
|
bzip2
|
||||||
bzip2
|
libxml2
|
||||||
libxml2
|
acl
|
||||||
acl
|
libsodium
|
||||||
libsodium
|
util-linux
|
||||||
util-linux
|
xz
|
||||||
xz
|
systemd
|
||||||
systemd
|
]);
|
||||||
]);
|
# Darwin requires a different library path prefix
|
||||||
# Darwin requires a different library path prefix
|
wrapPrefix =
|
||||||
wrapPrefix = if (!pkgs.stdenv.isDarwin) then "LD_LIBRARY_PATH" else "DYLD_LIBRARY_PATH";
|
if (!pkgs.stdenv.isDarwin)
|
||||||
# pythonOverlay = (pkgs.python313.withPackages (ps: [
|
then "LD_LIBRARY_PATH"
|
||||||
# (ps.torch.override { rocmSupport = true; })
|
else "DYLD_LIBRARY_PATH";
|
||||||
# ]));
|
# pythonOverlay = (pkgs.python313.withPackages (ps: [
|
||||||
|
# (ps.torch.override { rocmSupport = true; })
|
||||||
|
# ]));
|
||||||
|
|
||||||
patchedpython = (pkgs.symlinkJoin {
|
patchedpython = pkgs.symlinkJoin {
|
||||||
name = "python";
|
name = "python";
|
||||||
paths = [ pkgs.python313 ];
|
paths = [pkgs.python313];
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [pkgs.makeWrapper];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram "$out/bin/python3.13" --prefix ${wrapPrefix} : "${pythonldlibpath}"
|
wrapProgram "$out/bin/python3.13" --prefix ${wrapPrefix} : "${pythonldlibpath}"
|
||||||
'';
|
'';
|
||||||
});
|
};
|
||||||
in {
|
in {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
patchedpython
|
patchedpython
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,82 +1,85 @@
|
||||||
{ pkgs, scripts }:
|
{
|
||||||
let
|
pkgs,
|
||||||
notify_script = (pkgs.writers.writePython3Bin "telegram-notify.py"
|
scripts,
|
||||||
{
|
}: let
|
||||||
libraries = [ pkgs.python3Packages.python-telegram-bot ];
|
notify_script =
|
||||||
} ''
|
pkgs.writers.writePython3Bin "telegram-notify.py"
|
||||||
import telegram
|
|
||||||
import asyncio
|
|
||||||
import sys
|
|
||||||
import socket
|
|
||||||
import json
|
|
||||||
import subprocess
|
|
||||||
import tempfile
|
|
||||||
|
|
||||||
|
|
||||||
async def run():
|
|
||||||
text = subprocess.check_output(
|
|
||||||
[
|
|
||||||
"journalctl",
|
|
||||||
"--user",
|
|
||||||
"-u",
|
|
||||||
sys.argv[1],
|
|
||||||
"--since",
|
|
||||||
"-1h",
|
|
||||||
"--no-pager"
|
|
||||||
]
|
|
||||||
).decode("utf-8")
|
|
||||||
|
|
||||||
with open("/home/server/.secrets/Telegram/token.json") as f:
|
|
||||||
credentials = json.load(f)
|
|
||||||
token = credentials["token"]
|
|
||||||
chat_id = credentials["chat_id"]
|
|
||||||
|
|
||||||
with open("/home/server/mail.log", "a") as f:
|
|
||||||
f.write(text)
|
|
||||||
f.write("\n===========================================\n")
|
|
||||||
|
|
||||||
bot = telegram.Bot(token=token)
|
|
||||||
hostname = socket.gethostname()
|
|
||||||
await bot.send_message(
|
|
||||||
chat_id,
|
|
||||||
f"{hostname} encountered an error in the service: {sys.argv[1]}"
|
|
||||||
)
|
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile(suffix=".txt") as tmp_file:
|
|
||||||
tmp_file.write(text.encode("utf-8"))
|
|
||||||
tmp_file.seek(0)
|
|
||||||
await bot.send_document(chat_id, document=tmp_file)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
loop = asyncio.get_event_loop()
|
|
||||||
loop.run_until_complete(asyncio.wait([loop.create_task(run())]))
|
|
||||||
loop.close()
|
|
||||||
'');
|
|
||||||
|
|
||||||
mkTimer = name: cfg: {
|
|
||||||
Install.WantedBy = [ "timers.target" ];
|
|
||||||
Timer = {
|
|
||||||
Persistent = true;
|
|
||||||
OnCalendar = cfg.when;
|
|
||||||
Unit = "${name}.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
mkService = name: cfg: {
|
|
||||||
Unit.Description = name;
|
|
||||||
Unit.OnFailure = "status_notify@${name}.service";
|
|
||||||
# Install = { WantedBy = [ "default.target" ]; };
|
|
||||||
Service = { ExecStart = cfg.script; };
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
systemd.user.services = pkgs.lib.mapAttrs mkService scripts
|
libraries = [pkgs.python3Packages.python-telegram-bot];
|
||||||
// (pkgs.lib.mapAttrs mkService {
|
} ''
|
||||||
"status_notify@" = {
|
import telegram
|
||||||
script = "${notify_script}/bin/telegram-notify.py %i";
|
import asyncio
|
||||||
};
|
import sys
|
||||||
});
|
import socket
|
||||||
systemd.user.timers = pkgs.lib.mapAttrs mkTimer scripts;
|
import json
|
||||||
# Don't forget to enable these timers! Or reboot, after which it should also be activated automatically
|
import subprocess
|
||||||
# systemctl --user enable --now <script>.timer
|
import tempfile
|
||||||
|
|
||||||
|
|
||||||
|
async def run():
|
||||||
|
text = subprocess.check_output(
|
||||||
|
[
|
||||||
|
"journalctl",
|
||||||
|
"--user",
|
||||||
|
"-u",
|
||||||
|
sys.argv[1],
|
||||||
|
"--since",
|
||||||
|
"-1h",
|
||||||
|
"--no-pager"
|
||||||
|
]
|
||||||
|
).decode("utf-8")
|
||||||
|
|
||||||
|
with open("/home/server/.secrets/Telegram/token.json") as f:
|
||||||
|
credentials = json.load(f)
|
||||||
|
token = credentials["token"]
|
||||||
|
chat_id = credentials["chat_id"]
|
||||||
|
|
||||||
|
with open("/home/server/mail.log", "a") as f:
|
||||||
|
f.write(text)
|
||||||
|
f.write("\n===========================================\n")
|
||||||
|
|
||||||
|
bot = telegram.Bot(token=token)
|
||||||
|
hostname = socket.gethostname()
|
||||||
|
await bot.send_message(
|
||||||
|
chat_id,
|
||||||
|
f"{hostname} encountered an error in the service: {sys.argv[1]}"
|
||||||
|
)
|
||||||
|
|
||||||
|
with tempfile.NamedTemporaryFile(suffix=".txt") as tmp_file:
|
||||||
|
tmp_file.write(text.encode("utf-8"))
|
||||||
|
tmp_file.seek(0)
|
||||||
|
await bot.send_document(chat_id, document=tmp_file)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
loop.run_until_complete(asyncio.wait([loop.create_task(run())]))
|
||||||
|
loop.close()
|
||||||
|
'';
|
||||||
|
|
||||||
|
mkTimer = name: cfg: {
|
||||||
|
Install.WantedBy = ["timers.target"];
|
||||||
|
Timer = {
|
||||||
|
Persistent = true;
|
||||||
|
OnCalendar = cfg.when;
|
||||||
|
Unit = "${name}.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
mkService = name: cfg: {
|
||||||
|
Unit.Description = name;
|
||||||
|
Unit.OnFailure = "status_notify@${name}.service";
|
||||||
|
# Install = { WantedBy = [ "default.target" ]; };
|
||||||
|
Service = {ExecStart = cfg.script;};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
systemd.user.services =
|
||||||
|
pkgs.lib.mapAttrs mkService scripts
|
||||||
|
// (pkgs.lib.mapAttrs mkService {
|
||||||
|
"status_notify@" = {
|
||||||
|
script = "${notify_script}/bin/telegram-notify.py %i";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
systemd.user.timers = pkgs.lib.mapAttrs mkTimer scripts;
|
||||||
|
# Don't forget to enable these timers! Or reboot, after which it should also be activated automatically
|
||||||
|
# systemctl --user enable --now <script>.timer
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
{ inputs, ... }: # Add inputs here
|
{inputs, ...}:
|
||||||
|
# Add inputs here
|
||||||
{
|
{
|
||||||
# Import the module definition here
|
# Import the module definition here
|
||||||
imports = [ inputs.vicinae.homeManagerModules.default ];
|
imports = [inputs.vicinae.homeManagerModules.default];
|
||||||
|
|
||||||
services.vicinae = {
|
services.vicinae = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
environment = {
|
environment = {
|
||||||
QT_SCALE_FACTOR="1.5";
|
QT_SCALE_FACTOR = "1.5";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [inputs.walker.homeManagerModules.walker];
|
inputs,
|
||||||
programs.walker = {
|
config,
|
||||||
enable = true;
|
pkgs,
|
||||||
runAsService = true;
|
...
|
||||||
};
|
}: {
|
||||||
home.file."${config.xdg.configHome}/walker" = {
|
imports = [inputs.walker.homeManagerModules.walker];
|
||||||
source = ./files;
|
programs.walker = {
|
||||||
recursive = true;
|
enable = true;
|
||||||
};
|
runAsService = true;
|
||||||
|
};
|
||||||
|
home.file."${config.xdg.configHome}/walker" = {
|
||||||
|
source = ./files;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,91 +1,93 @@
|
||||||
{ inputs, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.waybar = {
|
inputs,
|
||||||
enable = true;
|
pkgs,
|
||||||
package = inputs.waybar.packages.${pkgs.stdenv.hostPlatform.system}.waybar;
|
...
|
||||||
settings = {
|
}: {
|
||||||
mainBar = {
|
programs.waybar = {
|
||||||
layer = "top";
|
enable = true;
|
||||||
height = pkgs.lib.mkDefault 35;
|
package = inputs.waybar.packages.${pkgs.stdenv.hostPlatform.system}.waybar;
|
||||||
spacing = 4;
|
settings = {
|
||||||
# output = "DP-2"; # Fill in with host-specific config!
|
mainBar = {
|
||||||
modules-left = [ "wlr/taskbar" ];
|
layer = "top";
|
||||||
modules-center = [ "hyprland/workspaces" ];
|
height = pkgs.lib.mkDefault 35;
|
||||||
modules-right = [
|
spacing = 4;
|
||||||
"tray"
|
# output = "DP-2"; # Fill in with host-specific config!
|
||||||
"wireplumber"
|
modules-left = ["wlr/taskbar"];
|
||||||
"battery"
|
modules-center = ["hyprland/workspaces"];
|
||||||
"cpu#cpu2"
|
modules-right = [
|
||||||
"cpu"
|
"tray"
|
||||||
"memory"
|
"wireplumber"
|
||||||
"custom/temperature"
|
"battery"
|
||||||
"clock"
|
"cpu#cpu2"
|
||||||
"clock#clock2"
|
"cpu"
|
||||||
];
|
"memory"
|
||||||
"wlr/taskbar" = {
|
"custom/temperature"
|
||||||
on-click = "activate";
|
"clock"
|
||||||
on-click-right = "close";
|
"clock#clock2"
|
||||||
format = "{icon} {title:.20}";
|
];
|
||||||
all-outputs = true;
|
"wlr/taskbar" = {
|
||||||
};
|
on-click = "activate";
|
||||||
"wireplumber" = {
|
on-click-right = "close";
|
||||||
format = "{icon} {volume}%";
|
format = "{icon} {title:.20}";
|
||||||
format-muted = "";
|
all-outputs = true;
|
||||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
|
||||||
format-icons = [ "" "" "" ];
|
|
||||||
};
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
disable-scroll = true;
|
|
||||||
all-outputs = true;
|
|
||||||
warp-on-scroll = false;
|
|
||||||
format = "{name}";
|
|
||||||
};
|
|
||||||
"hyprland/window" = { max-length = 50; };
|
|
||||||
tray = { spacing = 10; };
|
|
||||||
"clock#clock2" = {
|
|
||||||
timezone = "Asia/Bangkok";
|
|
||||||
format = "{:%H:%M:%S}";
|
|
||||||
interval = 1;
|
|
||||||
};
|
|
||||||
clock = {
|
|
||||||
timezone = "Asia/Bangkok";
|
|
||||||
format = "{:%Y-%m-%d}";
|
|
||||||
interval = 3600;
|
|
||||||
};
|
|
||||||
cpu = {
|
|
||||||
format = "{max_frequency}GHz";
|
|
||||||
tooltip = false;
|
|
||||||
interval = 5;
|
|
||||||
};
|
|
||||||
"cpu#cpu2" = {
|
|
||||||
format = "CPU {usage}%";
|
|
||||||
tooltip = false;
|
|
||||||
interval = 5;
|
|
||||||
};
|
|
||||||
memory = {
|
|
||||||
interval = 5;
|
|
||||||
format = "{used:0.2f}G";
|
|
||||||
};
|
|
||||||
"custom/temperature" = {
|
|
||||||
interval = 5;
|
|
||||||
exec = pkgs.lib.mkDefault "echo TODO";
|
|
||||||
};
|
|
||||||
battery = {
|
|
||||||
states = {
|
|
||||||
warning = 30;
|
|
||||||
critical = 15;
|
|
||||||
};
|
|
||||||
format = "{icon}";
|
|
||||||
tooltip-format = "{capacity}% ({time})";
|
|
||||||
format-icons = [ " " " " " " " " " " ];
|
|
||||||
format-charging = "{capacity}% ";
|
|
||||||
format-full = "{capacity}% ";
|
|
||||||
format-alt = "{capacity}% {time} [{power:.2} W]";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
style = ''
|
"wireplumber" = {
|
||||||
|
format = "{icon} {volume}%";
|
||||||
|
format-muted = "";
|
||||||
|
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||||
|
format-icons = ["" "" ""];
|
||||||
|
};
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
disable-scroll = true;
|
||||||
|
all-outputs = true;
|
||||||
|
warp-on-scroll = false;
|
||||||
|
format = "{name}";
|
||||||
|
};
|
||||||
|
"hyprland/window" = {max-length = 50;};
|
||||||
|
tray = {spacing = 10;};
|
||||||
|
"clock#clock2" = {
|
||||||
|
timezone = "Asia/Bangkok";
|
||||||
|
format = "{:%H:%M:%S}";
|
||||||
|
interval = 1;
|
||||||
|
};
|
||||||
|
clock = {
|
||||||
|
timezone = "Asia/Bangkok";
|
||||||
|
format = "{:%Y-%m-%d}";
|
||||||
|
interval = 3600;
|
||||||
|
};
|
||||||
|
cpu = {
|
||||||
|
format = "{max_frequency}GHz";
|
||||||
|
tooltip = false;
|
||||||
|
interval = 5;
|
||||||
|
};
|
||||||
|
"cpu#cpu2" = {
|
||||||
|
format = "CPU {usage}%";
|
||||||
|
tooltip = false;
|
||||||
|
interval = 5;
|
||||||
|
};
|
||||||
|
memory = {
|
||||||
|
interval = 5;
|
||||||
|
format = "{used:0.2f}G";
|
||||||
|
};
|
||||||
|
"custom/temperature" = {
|
||||||
|
interval = 5;
|
||||||
|
exec = pkgs.lib.mkDefault "echo TODO";
|
||||||
|
};
|
||||||
|
battery = {
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{icon}";
|
||||||
|
tooltip-format = "{capacity}% ({time})";
|
||||||
|
format-icons = [" " " " " " " " " "];
|
||||||
|
format-charging = "{capacity}% ";
|
||||||
|
format-full = "{capacity}% ";
|
||||||
|
format-alt = "{capacity}% {time} [{power:.2} W]";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
style = ''
|
||||||
* {
|
* {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
@ -227,6 +229,6 @@
|
||||||
-gtk-icon-effect: highlight;
|
-gtk-icon-effect: highlight;
|
||||||
background-color: #eb4d4b;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
{...}:
|
{...}: {
|
||||||
|
|
||||||
{
|
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|
@ -13,16 +11,56 @@
|
||||||
|
|
||||||
keymap = {
|
keymap = {
|
||||||
mgr.normal = [
|
mgr.normal = [
|
||||||
{ on = [ "j" ]; run = "down"; desc = "Move cursor down"; }
|
{
|
||||||
{ on = [ "k" ]; run = "up"; desc = "Move cursor up"; }
|
on = ["j"];
|
||||||
{ on = [ "h" ]; run = "back"; desc = "Go back to parent directory"; }
|
run = "down";
|
||||||
{ on = [ "l" ]; run = "forward"; desc = "Enter directory / open file"; }
|
desc = "Move cursor down";
|
||||||
{ on = [ "q" ]; run = "quit"; desc = "Quit yazi"; }
|
}
|
||||||
{ on = [ " " ]; run = "select"; desc = "Select the current file"; }
|
{
|
||||||
{ on = [ "v" ]; run = "visual_mode"; desc = "Enter visual mode"; }
|
on = ["k"];
|
||||||
{ on = [ "y" ]; run = "yank"; desc = "Yank selection"; }
|
run = "up";
|
||||||
{ on = [ "p" ]; run = "paste"; desc = "Paste files"; }
|
desc = "Move cursor up";
|
||||||
{ on = [ "d" ]; run = "remove --permanently"; desc = "Delete permanently"; }
|
}
|
||||||
|
{
|
||||||
|
on = ["h"];
|
||||||
|
run = "back";
|
||||||
|
desc = "Go back to parent directory";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["l"];
|
||||||
|
run = "forward";
|
||||||
|
desc = "Enter directory / open file";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["q"];
|
||||||
|
run = "quit";
|
||||||
|
desc = "Quit yazi";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [" "];
|
||||||
|
run = "select";
|
||||||
|
desc = "Select the current file";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["v"];
|
||||||
|
run = "visual_mode";
|
||||||
|
desc = "Enter visual mode";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["y"];
|
||||||
|
run = "yank";
|
||||||
|
desc = "Yank selection";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["p"];
|
||||||
|
run = "paste";
|
||||||
|
desc = "Paste files";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["d"];
|
||||||
|
run = "remove --permanently";
|
||||||
|
desc = "Delete permanently";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
programs.zellij = {
|
||||||
programs.zellij = {
|
enable = true;
|
||||||
enable = true;
|
};
|
||||||
};
|
home.file."${config.xdg.configHome}/zellij" = {
|
||||||
home.file."${config.xdg.configHome}/zellij" = {
|
source = ./files;
|
||||||
source = ./files;
|
recursive = true;
|
||||||
recursive = true;
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,114 +1,117 @@
|
||||||
{ config, inputs, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = [
|
config,
|
||||||
pkgs.fzy
|
inputs,
|
||||||
pkgs.lf
|
pkgs,
|
||||||
pkgs.curl
|
...
|
||||||
pkgs.fd
|
}: {
|
||||||
pkgs.zsh-powerlevel10k
|
home.packages = [
|
||||||
pkgs.zsh-autocomplete
|
pkgs.fzy
|
||||||
pkgs.zsh-vi-mode
|
pkgs.lf
|
||||||
pkgs.ripgrep
|
pkgs.curl
|
||||||
pkgs.rsync
|
pkgs.fd
|
||||||
pkgs.moreutils
|
pkgs.zsh-powerlevel10k
|
||||||
inputs.fzgo.packages.${pkgs.stdenv.hostPlatform.system}.default
|
pkgs.zsh-autocomplete
|
||||||
];
|
pkgs.zsh-vi-mode
|
||||||
home.sessionVariables = {
|
pkgs.ripgrep
|
||||||
BROWSER = "Helium";
|
pkgs.rsync
|
||||||
PDF_VIEWER = "evince";
|
pkgs.moreutils
|
||||||
GPULAB_CERT = "${config.xdg.configHome}/../.secrets/GPULab/certificate.pem";
|
inputs.fzgo.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
GPULAB_DEV = "False";
|
];
|
||||||
GCC_COLORS = "error = '01;31:warning = '01;35:note = '01;36:caret = '01;32:locus = '01:quote = '01'";
|
home.sessionVariables = {
|
||||||
ARCHFLAGS = "-arch x86_64";
|
BROWSER = "Helium";
|
||||||
TERM = "screen-256color";
|
PDF_VIEWER = "evince";
|
||||||
PYTHONDONTWRITEBYTECODE = "1";
|
GPULAB_CERT = "${config.xdg.configHome}/../.secrets/GPULab/certificate.pem";
|
||||||
GOPATH = "${config.xdg.dataHome}/go";
|
GPULAB_DEV = "False";
|
||||||
DIRENV_LOG_FORMAT = "";
|
GCC_COLORS = "error = '01;31:warning = '01;35:note = '01;36:caret = '01;32:locus = '01:quote = '01'";
|
||||||
OPENER = "${pkgs.handlr-regex}/bin/handlr open";
|
ARCHFLAGS = "-arch x86_64";
|
||||||
|
TERM = "screen-256color";
|
||||||
|
PYTHONDONTWRITEBYTECODE = "1";
|
||||||
|
GOPATH = "${config.xdg.dataHome}/go";
|
||||||
|
DIRENV_LOG_FORMAT = "";
|
||||||
|
OPENER = "${pkgs.handlr-regex}/bin/handlr open";
|
||||||
|
};
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
config = {
|
||||||
|
global = {
|
||||||
|
hiden_env_diff = true;
|
||||||
|
warn_timeout = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
programs.direnv = {
|
};
|
||||||
enable = true;
|
home.file."${config.xdg.configHome}/direnv/direnvrc".text = ''
|
||||||
nix-direnv.enable = true;
|
: "''${XDG_CACHE_HOME:="''${HOME}/.cache"}"
|
||||||
config = {
|
declare -A direnv_layout_dirs
|
||||||
global = {
|
direnv_layout_dir() {
|
||||||
hiden_env_diff = true;
|
local hash path
|
||||||
warn_timeout = 0;
|
echo "''${direnv_layout_dirs[$PWD]:=$(
|
||||||
};
|
hash="$(sha1sum - <<< "$PWD" | head -c40)"
|
||||||
};
|
path="''${PWD//[^a-zA-Z0-9]/-}"
|
||||||
};
|
echo "''${XDG_CACHE_HOME}/direnv/layouts/''${hash}''${path}"
|
||||||
home.file."${config.xdg.configHome}/direnv/direnvrc".text = ''
|
)}"
|
||||||
: "''${XDG_CACHE_HOME:="''${HOME}/.cache"}"
|
}
|
||||||
declare -A direnv_layout_dirs
|
'';
|
||||||
direnv_layout_dir() {
|
programs.fzf = {enable = true;};
|
||||||
local hash path
|
programs.zsh = {
|
||||||
echo "''${direnv_layout_dirs[$PWD]:=$(
|
enable = true;
|
||||||
hash="$(sha1sum - <<< "$PWD" | head -c40)"
|
enableCompletion = true;
|
||||||
path="''${PWD//[^a-zA-Z0-9]/-}"
|
syntaxHighlighting.enable = false;
|
||||||
echo "''${XDG_CACHE_HOME}/direnv/layouts/''${hash}''${path}"
|
autosuggestion.enable = true;
|
||||||
)}"
|
initContent = pkgs.lib.mkBefore ''
|
||||||
|
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
|
||||||
|
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
|
||||||
|
source ${./files/waypipe.zsh}
|
||||||
|
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
source ${./files/p10k.zsh}
|
||||||
|
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||||
|
source ${./files/functions.zsh}
|
||||||
|
source ${./files/fzgo.zsh}
|
||||||
|
function zvm_after_init() {
|
||||||
|
source ${./files/term.zsh}
|
||||||
|
source ${./files/completion.zsh}
|
||||||
|
if [ -n "\$\{commands[fzf-share]\}" ]; then
|
||||||
|
source "$(fzf-share)/key-bindings.zsh"
|
||||||
|
source "$(fzf-share)/completion.zsh"
|
||||||
|
fi
|
||||||
|
source ${./files/keys.zsh}
|
||||||
|
eval "$(direnv hook zsh)"
|
||||||
|
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
|
||||||
|
}
|
||||||
|
function o() {
|
||||||
|
${pkgs.handlr-regex}/bin/handlr open $@ < /dev/null &> /dev/null & disown
|
||||||
|
}
|
||||||
|
precmd() {
|
||||||
|
print -Pn "\e]133;A\e\\"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
programs.fzf = { enable = true; };
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
syntaxHighlighting.enable = false;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
initContent = pkgs.lib.mkBefore ''
|
|
||||||
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
|
|
||||||
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
|
|
||||||
source ${./files/waypipe.zsh}
|
|
||||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
|
||||||
source ${./files/p10k.zsh}
|
|
||||||
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
|
||||||
source ${./files/functions.zsh}
|
|
||||||
source ${./files/fzgo.zsh}
|
|
||||||
function zvm_after_init() {
|
|
||||||
source ${./files/term.zsh}
|
|
||||||
source ${./files/completion.zsh}
|
|
||||||
if [ -n "\$\{commands[fzf-share]\}" ]; then
|
|
||||||
source "$(fzf-share)/key-bindings.zsh"
|
|
||||||
source "$(fzf-share)/completion.zsh"
|
|
||||||
fi
|
|
||||||
source ${./files/keys.zsh}
|
|
||||||
eval "$(direnv hook zsh)"
|
|
||||||
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
|
|
||||||
}
|
|
||||||
function o() {
|
|
||||||
${pkgs.handlr-regex}/bin/handlr open $@ < /dev/null &> /dev/null & disown
|
|
||||||
}
|
|
||||||
precmd() {
|
|
||||||
print -Pn "\e]133;A\e\\"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
mallorea = "run_waypipe mallorea";
|
mallorea = "run_waypipe mallorea";
|
||||||
vault = "run_waypipe vault";
|
vault = "run_waypipe vault";
|
||||||
riva = "run_waypipe riva";
|
riva = "run_waypipe riva";
|
||||||
kell = "run_waypipe kell";
|
kell = "run_waypipe kell";
|
||||||
aloria = "run_waypipe aloria";
|
aloria = "run_waypipe aloria";
|
||||||
arch = "run_waypipe arch";
|
arch = "run_waypipe arch";
|
||||||
|
|
||||||
ll = "ls -lhat";
|
ll = "ls -lhat";
|
||||||
ls = "ls --color=auto";
|
ls = "ls --color=auto";
|
||||||
lf = ''cd "$(${pkgs.lf}/bin/lf -print-last-dir)"'';
|
lf = ''cd "$(${pkgs.lf}/bin/lf -print-last-dir)"'';
|
||||||
|
|
||||||
compress = "tar --use-compress-program = lbzip2 -cvf";
|
compress = "tar --use-compress-program = lbzip2 -cvf";
|
||||||
wget = ''wget --hsts-file = "$XDG_DATA_HOME/wget-hsts"'';
|
wget = ''wget --hsts-file = "$XDG_DATA_HOME/wget-hsts"'';
|
||||||
python = "python3";
|
python = "python3";
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
v = ''echo $(pwd) > /tmp/oil_dir && nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
v = ''echo $(pwd) > /tmp/oil_dir && nvim -c ':lua require("oil").open()' && cd "$(cat /tmp/oil_dir 2> /dev/null || pwd)"'';
|
||||||
cpr = "rsync --archive -hh --partial --info = stats1,progress2 --modify-window = 1";
|
cpr = "rsync --archive -hh --partial --info = stats1,progress2 --modify-window = 1";
|
||||||
mvr = "rsync --archive -hh --partial --info = stats1,progress2 --modify-window = 1 --remove-source-files";
|
mvr = "rsync --archive -hh --partial --info = stats1,progress2 --modify-window = 1 --remove-source-files";
|
||||||
rg = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
rg = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
||||||
ag = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
ag = "rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'";
|
||||||
reset = "tput reset";
|
reset = "tput reset";
|
||||||
};
|
|
||||||
history.size = 10000000;
|
|
||||||
history.save = 10000000;
|
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
||||||
autocd = true;
|
|
||||||
};
|
};
|
||||||
|
history.size = 10000000;
|
||||||
|
history.save = 10000000;
|
||||||
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
autocd = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,157 +1,183 @@
|
||||||
{ pkgs, lib, inputs, config, ... }:
|
{
|
||||||
let
|
pkgs,
|
||||||
serverIP = "10.0.0.1";
|
lib,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
serverIP = "10.0.0.1";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../Common/default.nix { inherit inputs pkgs config; })
|
(import ../Common/default.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/nfs.nix { inherit pkgs serverIP; })
|
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
||||||
(import ../Common/zfs.nix {inherit inputs pkgs config; })
|
(import ../Common/zfs.nix {inherit inputs pkgs config;})
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.graphics.extraPackages = [
|
||||||
|
pkgs.intel-compute-runtime
|
||||||
|
pkgs.intel-media-driver
|
||||||
|
];
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
services.upower.enable = true;
|
||||||
|
services.logind.settings.Login = {
|
||||||
|
HandlePowerKey = "suspend";
|
||||||
|
};
|
||||||
|
services.throttled.enable = true;
|
||||||
|
services.thinkfan.enable = true;
|
||||||
|
services.thinkfan.settings = {
|
||||||
|
sensors = [
|
||||||
|
# Search for 'coretemp' anywhere in /sys/class/hwmon
|
||||||
|
{
|
||||||
|
hwmon = "/sys/class/hwmon";
|
||||||
|
name = "coretemp";
|
||||||
|
indices = [1];
|
||||||
|
}
|
||||||
|
|
||||||
|
# Search for 'acpitz'
|
||||||
|
{
|
||||||
|
hwmon = "/sys/class/hwmon";
|
||||||
|
name = "acpitz";
|
||||||
|
indices = [1];
|
||||||
|
}
|
||||||
|
|
||||||
|
# Search for 'nvme'
|
||||||
|
{
|
||||||
|
hwmon = "/sys/class/hwmon";
|
||||||
|
name = "nvme";
|
||||||
|
indices = [1];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.graphics.extraPackages = [
|
fans = [
|
||||||
pkgs.intel-compute-runtime
|
{tpacpi = "/proc/acpi/ibm/fan";}
|
||||||
pkgs.intel-media-driver
|
|
||||||
];
|
];
|
||||||
|
|
||||||
zramSwap.enable = true;
|
levels = [
|
||||||
services.upower.enable = true;
|
[0 0 45]
|
||||||
services.logind.settings.Login = {
|
[1 42 55]
|
||||||
HandlePowerKey = "suspend";
|
[2 50 60]
|
||||||
};
|
[3 56 68]
|
||||||
services.throttled.enable = true;
|
[5 64 78]
|
||||||
services.thinkfan.enable = true;
|
[7 76 95]
|
||||||
services.thinkfan.settings = {
|
|
||||||
sensors = [
|
|
||||||
# Search for 'coretemp' anywhere in /sys/class/hwmon
|
|
||||||
{ hwmon = "/sys/class/hwmon"; name = "coretemp"; indices = [ 1 ]; }
|
|
||||||
|
|
||||||
# Search for 'acpitz'
|
|
||||||
{ hwmon = "/sys/class/hwmon"; name = "acpitz"; indices = [ 1 ]; }
|
|
||||||
|
|
||||||
# Search for 'nvme'
|
|
||||||
{ hwmon = "/sys/class/hwmon"; name = "nvme"; indices = [ 1 ]; }
|
|
||||||
];
|
|
||||||
|
|
||||||
fans = [
|
|
||||||
{ tpacpi = "/proc/acpi/ibm/fan"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
levels = [
|
|
||||||
[ 0 0 45 ]
|
|
||||||
[ 1 42 55 ]
|
|
||||||
[ 2 50 60 ]
|
|
||||||
[ 3 56 68 ]
|
|
||||||
[ 5 64 78 ]
|
|
||||||
[ 7 76 95 ]
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostId = "4e859062";
|
|
||||||
networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
|
||||||
networking.enableIPv6 = false;
|
|
||||||
networking.wireless.iwd.enable = true;
|
|
||||||
networking.wireless.iwd.settings = {
|
|
||||||
IPv6 = {
|
|
||||||
Enabled = false;
|
|
||||||
};
|
|
||||||
Settings = {
|
|
||||||
AutoConnect = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.fprintd = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig.Type = "simple";
|
|
||||||
};
|
|
||||||
services.fprintd = {
|
|
||||||
enable = true;
|
|
||||||
# tod = {
|
|
||||||
# enable = true;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
security.pam.services.sudo.fprintAuth = true;
|
|
||||||
|
|
||||||
# virtualisation
|
|
||||||
virtualisation.libvirtd.enable = true;
|
|
||||||
virtualisation.spiceUSBRedirection.enable = true;
|
|
||||||
programs.virt-manager.enable = true;
|
|
||||||
users.users.user.extraGroups = [ "libvirtd" ];
|
|
||||||
|
|
||||||
services.tlp = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.network.enable = true;
|
|
||||||
networking.useNetworkd = true;
|
|
||||||
systemd.network.config.networkConfig = {
|
|
||||||
ManageForeignRoutingPolicyRules = false;
|
|
||||||
ManageForeignRoutes = false;
|
|
||||||
SpeedMeter = true;
|
|
||||||
};
|
|
||||||
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
networking.wg-quick.interfaces = {
|
|
||||||
Tunnel = {
|
|
||||||
address = [ "10.0.0.5/24" ];
|
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
|
||||||
listenPort = 51820;
|
|
||||||
autostart = false;
|
|
||||||
postUp = "resolvectl dns Tunnel 10.0.0.1; resolvectl domain Tunnel ~thomasave.be;";
|
|
||||||
dns = ["10.0.0.1"];
|
|
||||||
peers = [{
|
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
|
||||||
endpoint = "external.thomasave.be:13231";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
OPNsense = {
|
|
||||||
address = [ "10.0.0.5/24" ];
|
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
|
||||||
listenPort = 51820;
|
|
||||||
autostart = true;
|
|
||||||
postUp = "resolvectl dns OPNsense 10.0.0.1; resolvectl domain OPNsense ~thomasave.be;";
|
|
||||||
dns = ["10.0.0.1"];
|
|
||||||
peers = [{
|
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
|
||||||
allowedIPs = [ "10.0.0.1/8" "192.168.1.2/32" ];
|
|
||||||
endpoint = "external.thomasave.be:13231";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
GCP = {
|
|
||||||
address = [ "10.5.0.5/24" ];
|
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/GCP.key";
|
|
||||||
listenPort = 51820;
|
|
||||||
autostart = false;
|
|
||||||
postUp = "resolvectl dns GCP 1.1.1.1;resolvectl dns wlan0 1.1.1.1;";
|
|
||||||
peers = [{
|
|
||||||
publicKey = "NEBNE4Czf2MkZF2X5aVhmofENH1uXjDpvXjIMJvfMFA=";
|
|
||||||
allowedIPs = [ "0.0.0.0/0" ];
|
|
||||||
endpoint = "35.201.231.151:443";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
systemd.services."wg-quick-OPNsense" = {
|
|
||||||
serviceConfig = { Restart = "on-failure"; RestartSec = "2s"; };
|
|
||||||
unitConfig.StartLimitIntervalSec = 0;
|
|
||||||
};
|
|
||||||
services.usbmuxd.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
ifuse
|
|
||||||
libimobiledevice
|
|
||||||
scrcpy
|
|
||||||
v4l-utils
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
gamescopeSession.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.hostId = "4e859062";
|
||||||
|
networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||||
|
networking.enableIPv6 = false;
|
||||||
|
networking.wireless.iwd.enable = true;
|
||||||
|
networking.wireless.iwd.settings = {
|
||||||
|
IPv6 = {
|
||||||
|
Enabled = false;
|
||||||
|
};
|
||||||
|
Settings = {
|
||||||
|
AutoConnect = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.fprintd = {
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
serviceConfig.Type = "simple";
|
||||||
|
};
|
||||||
|
services.fprintd = {
|
||||||
|
enable = true;
|
||||||
|
# tod = {
|
||||||
|
# enable = true;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
security.pam.services.sudo.fprintAuth = true;
|
||||||
|
|
||||||
|
# virtualisation
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
users.users.user.extraGroups = ["libvirtd"];
|
||||||
|
|
||||||
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||||
|
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network.enable = true;
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
systemd.network.config.networkConfig = {
|
||||||
|
ManageForeignRoutingPolicyRules = false;
|
||||||
|
ManageForeignRoutes = false;
|
||||||
|
SpeedMeter = true;
|
||||||
|
};
|
||||||
|
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
Tunnel = {
|
||||||
|
address = ["10.0.0.5/24"];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
autostart = false;
|
||||||
|
postUp = "resolvectl dns Tunnel 10.0.0.1; resolvectl domain Tunnel ~thomasave.be;";
|
||||||
|
dns = ["10.0.0.1"];
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
allowedIPs = ["0.0.0.0/0" "::/0"];
|
||||||
|
endpoint = "external.thomasave.be:13231";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
OPNsense = {
|
||||||
|
address = ["10.0.0.5/24"];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/Aloria.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
autostart = true;
|
||||||
|
postUp = "resolvectl dns OPNsense 10.0.0.1; resolvectl domain OPNsense ~thomasave.be;";
|
||||||
|
dns = ["10.0.0.1"];
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
allowedIPs = ["10.0.0.1/8" "192.168.1.2/32"];
|
||||||
|
endpoint = "external.thomasave.be:13231";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
GCP = {
|
||||||
|
address = ["10.5.0.5/24"];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/GCP.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
autostart = false;
|
||||||
|
postUp = "resolvectl dns GCP 1.1.1.1;resolvectl dns wlan0 1.1.1.1;";
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "NEBNE4Czf2MkZF2X5aVhmofENH1uXjDpvXjIMJvfMFA=";
|
||||||
|
allowedIPs = ["0.0.0.0/0"];
|
||||||
|
endpoint = "35.201.231.151:443";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.services."wg-quick-OPNsense" = {
|
||||||
|
serviceConfig = {
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "2s";
|
||||||
|
};
|
||||||
|
unitConfig.StartLimitIntervalSec = 0;
|
||||||
|
};
|
||||||
|
services.usbmuxd.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
ifuse
|
||||||
|
libimobiledevice
|
||||||
|
scrcpy
|
||||||
|
v4l-utils
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,71 +1,75 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
];
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-intel" "v4l2loopback" ];
|
boot.kernelModules = ["kvm-intel" "v4l2loopback"];
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback tp_smapi ];
|
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback tp_smapi];
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options thinkpad_acpi fan_control=1
|
options thinkpad_acpi fan_control=1
|
||||||
options v4l2loopback exclusive_caps=1 card_label="Android Virtual Camera"
|
options v4l2loopback exclusive_caps=1 card_label="Android Virtual Camera"
|
||||||
'';
|
'';
|
||||||
boot.kernelParams = [ "ipv6.disable=1" ];
|
boot.kernelParams = ["ipv6.disable=1"];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "rpool/root";
|
device = "rpool/root";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" = {
|
||||||
{ device = "rpool/home";
|
device = "rpool/home";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/5C58-A909";
|
device = "/dev/disk/by-uuid/5C58-A909";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
hardware.trackpoint.enable = lib.mkDefault true;
|
hardware.trackpoint.enable = lib.mkDefault true;
|
||||||
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
|
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
|
||||||
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
|
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
|
||||||
hardware.ipu6.enable = true;
|
hardware.ipu6.enable = true;
|
||||||
hardware.ipu6.platform = "ipu6ep";
|
hardware.ipu6.platform = "ipu6ep";
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
zfs = pkgs.zfs_unstable;
|
zfs = pkgs.zfs_unstable;
|
||||||
};
|
};
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest.extend ( self: super: {
|
# boot.kernelPackages = pkgs.linuxPackages_latest.extend ( self: super: {
|
||||||
# ipu6-drivers = super.ipu6-drivers.overrideAttrs (
|
# ipu6-drivers = super.ipu6-drivers.overrideAttrs (
|
||||||
# final: previous: rec {
|
# final: previous: rec {
|
||||||
# src = builtins.fetchGit {
|
# src = builtins.fetchGit {
|
||||||
# url = "https://github.com/intel/ipu6-drivers.git";
|
# url = "https://github.com/intel/ipu6-drivers.git";
|
||||||
# ref = "master";
|
# ref = "master";
|
||||||
# rev = "4bb5b4d8128fbf7f4730cd364a8f7fc13a0ef65b";
|
# rev = "4bb5b4d8128fbf7f4730cd364a8f7fc13a0ef65b";
|
||||||
# };
|
# };
|
||||||
# patches = [
|
# patches = [
|
||||||
# "${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch"
|
# "${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch"
|
||||||
# ] ;
|
# ] ;
|
||||||
# }
|
# }
|
||||||
# );
|
# );
|
||||||
# } );
|
# } );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,124 +1,137 @@
|
||||||
{ pkgs, lib, inputs, config, nixos-06cb-009a-fingerprint-sensor, ... }:
|
{
|
||||||
let
|
pkgs,
|
||||||
serverIP = "10.0.0.1";
|
lib,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
nixos-06cb-009a-fingerprint-sensor,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
serverIP = "10.0.0.1";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../Common/default.nix { inherit inputs pkgs config; })
|
(import ../Common/default.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/nfs.nix { inherit pkgs serverIP; })
|
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
||||||
(import ../Common/zfs.nix {inherit inputs pkgs config; })
|
(import ../Common/zfs.nix {inherit inputs pkgs config;})
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.graphics.extraPackages = [
|
hardware.graphics.extraPackages = [
|
||||||
pkgs.intel-compute-runtime
|
pkgs.intel-compute-runtime
|
||||||
pkgs.intel-media-driver
|
pkgs.intel-media-driver
|
||||||
];
|
];
|
||||||
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.kernelParams = ["mitigations=off"];
|
boot.kernelParams = ["mitigations=off"];
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandlePowerKey = "suspend";
|
HandlePowerKey = "suspend";
|
||||||
};
|
};
|
||||||
services.throttled = {
|
services.throttled = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostId = "b6c5c9af";
|
networking.hostId = "b6c5c9af";
|
||||||
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
|
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
|
||||||
networking.wireless.iwd.enable = true;
|
networking.wireless.iwd.enable = true;
|
||||||
networking.wireless.iwd.settings = {
|
networking.wireless.iwd.settings = {
|
||||||
IPv6 = {
|
IPv6 = {
|
||||||
Enabled = true;
|
Enabled = true;
|
||||||
};
|
|
||||||
Settings = {
|
|
||||||
AutoConnect = true;
|
|
||||||
Country = "ES";
|
|
||||||
};
|
|
||||||
General = {
|
|
||||||
EnableNetworkConfiguration = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# services."06cb-009a-fingerprint-sensor" = {
|
Settings = {
|
||||||
# enable = true;
|
AutoConnect = true;
|
||||||
# backend = "python-validity";
|
Country = "ES";
|
||||||
# };
|
};
|
||||||
# services."06cb-009a-fingerprint-sensor" = {
|
General = {
|
||||||
# enable = true;
|
EnableNetworkConfiguration = true;
|
||||||
# backend = "libfprint-tod";
|
};
|
||||||
# calib-data-file = ./files/calib-data-2.bin;
|
};
|
||||||
# };
|
# services."06cb-009a-fingerprint-sensor" = {
|
||||||
|
# enable = true;
|
||||||
|
# backend = "python-validity";
|
||||||
|
# };
|
||||||
|
# services."06cb-009a-fingerprint-sensor" = {
|
||||||
|
# enable = true;
|
||||||
|
# backend = "libfprint-tod";
|
||||||
|
# calib-data-file = ./files/calib-data-2.bin;
|
||||||
|
# };
|
||||||
|
|
||||||
# virtualisation
|
# virtualisation
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
virtualisation.spiceUSBRedirection.enable = true;
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
users.users.user.extraGroups = [ "libvirtd" ];
|
users.users.user.extraGroups = ["libvirtd"];
|
||||||
|
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||||
START_CHARGE_THRESH_BAT1 = 40; # 40 and bellow it starts to charge
|
START_CHARGE_THRESH_BAT1 = 40; # 40 and bellow it starts to charge
|
||||||
STOP_CHARGE_THRESH_BAT1 = 80; # 80 and above it stops charging
|
STOP_CHARGE_THRESH_BAT1 = 80; # 80 and above it stops charging
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
systemd.network.config.networkConfig = {
|
systemd.network.config.networkConfig = {
|
||||||
ManageForeignRoutingPolicyRules = false;
|
ManageForeignRoutingPolicyRules = false;
|
||||||
ManageForeignRoutes = false;
|
ManageForeignRoutes = false;
|
||||||
SpeedMeter = true;
|
SpeedMeter = true;
|
||||||
|
};
|
||||||
|
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
Tunnel = {
|
||||||
|
address = ["10.0.0.7/24" "2a02:a03f:83ad:2101::7/128"];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/Arendia.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
autostart = false;
|
||||||
|
postUp = "resolvectl dns Tunnel 10.0.0.1; resolvectl domain Tunnel ~thomasave.be;";
|
||||||
|
dns = ["10.0.0.1"];
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
allowedIPs = ["0.0.0.0/0" "::/0"];
|
||||||
|
endpoint = "ipv4.thomasave.be:13231";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
OPNsense = {
|
||||||
networking.wg-quick.interfaces = {
|
address = ["10.0.0.7/24" "2a02:a03f:83ad:2101::7/128"];
|
||||||
Tunnel = {
|
privateKeyFile = "/home/user/.secrets/Wireguard/Arendia.key";
|
||||||
address = [ "10.0.0.7/24" "2a02:a03f:83ad:2101::7/128" ];
|
listenPort = 51820;
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Arendia.key";
|
autostart = true;
|
||||||
listenPort = 51820;
|
postUp = "resolvectl dns OPNsense 10.0.0.1; resolvectl domain OPNsense ~thomasave.be;";
|
||||||
autostart = false;
|
dns = ["10.0.0.1"];
|
||||||
postUp = "resolvectl dns Tunnel 10.0.0.1; resolvectl domain Tunnel ~thomasave.be;";
|
peers = [
|
||||||
dns = ["10.0.0.1"];
|
{
|
||||||
peers = [{
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
allowedIPs = ["10.0.0.1/8" "192.168.1.2/32"];
|
||||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
endpoint = "ipv4.thomasave.be:13231";
|
||||||
endpoint = "ipv4.thomasave.be:13231";
|
persistentKeepalive = 25;
|
||||||
persistentKeepalive = 25;
|
}
|
||||||
}];
|
];
|
||||||
};
|
|
||||||
OPNsense = {
|
|
||||||
address = [ "10.0.0.7/24" "2a02:a03f:83ad:2101::7/128" ];
|
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Arendia.key";
|
|
||||||
listenPort = 51820;
|
|
||||||
autostart = true;
|
|
||||||
postUp = "resolvectl dns OPNsense 10.0.0.1; resolvectl domain OPNsense ~thomasave.be;";
|
|
||||||
dns = ["10.0.0.1"];
|
|
||||||
peers = [{
|
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
|
||||||
allowedIPs = [ "10.0.0.1/8" "192.168.1.2/32" ];
|
|
||||||
endpoint = "ipv4.thomasave.be:13231";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
systemd.services."wg-quick-OPNsense" = {
|
};
|
||||||
serviceConfig = { Restart = "on-failure"; RestartSec = "2s"; };
|
systemd.services."wg-quick-OPNsense" = {
|
||||||
unitConfig.StartLimitIntervalSec = 0;
|
serviceConfig = {
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "2s";
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
unitConfig.StartLimitIntervalSec = 0;
|
||||||
gcc
|
};
|
||||||
];
|
environment.systemPackages = with pkgs; [
|
||||||
fonts.fontDir.enable = true;
|
gcc
|
||||||
services.flatpak.enable = true;
|
];
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
fonts.fontDir.enable = true;
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,40 @@
|
||||||
{ config, lib, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
config,
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
];
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "rpool/root";
|
device = "rpool/root";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/home" = {
|
||||||
device = "rpool/home";
|
device = "rpool/home";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/12CE-A600";
|
device = "/dev/disk/by-uuid/12CE-A600";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,36 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration of Arm VPS";
|
description = "Home Manager configuration of Arm VPS";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "aarch64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."ubuntu" = home-manager.lib.homeManagerConfiguration {
|
system = "aarch64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."ubuntu" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Arm.nix ];
|
modules = [../../home/Arm.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,42 +1,49 @@
|
||||||
{ lib, inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
lib,
|
||||||
serverIP = "192.168.1.2";
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
serverIP = "192.168.1.2";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../Common/default.nix { inherit inputs pkgs; })
|
(import ../Common/default.nix {inherit inputs pkgs;})
|
||||||
(import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
(import ../Common/nvidia.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/nfs.nix { inherit pkgs serverIP; })
|
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
address = [ "10.0.0.8/24" " 2a02:a03f:83ad:2101::8/128" ];
|
address = ["10.0.0.8/24" " 2a02:a03f:83ad:2101::8/128"];
|
||||||
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
dns = ["10.0.0.1" "fdc9:281f:04d7:9ee9::1"];
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Asturia.key";
|
privateKeyFile = "/home/user/.secrets/Wireguard/Asturia.key";
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
peers = [{
|
peers = [
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
{
|
||||||
allowedIPs = [ "10.0.0.1/8" ];
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
endpoint = "192.168.1.1:13231";
|
allowedIPs = ["10.0.0.1/8"];
|
||||||
}];
|
endpoint = "192.168.1.1:13231";
|
||||||
};
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Programs & Services
|
# Programs & Services
|
||||||
programs.gnupg.agent.enable = true;
|
programs.gnupg.agent.enable = true;
|
||||||
services.sunshine = {
|
services.sunshine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
capSysAdmin = true;
|
capSysAdmin = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
fileSystems."/mnt/host" = {
|
fileSystems."/mnt/host" = {
|
||||||
device = "host";
|
device = "host";
|
||||||
fsType = "virtiofs";
|
fsType = "virtiofs";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,34 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
lib,
|
||||||
];
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sd_mod" "sr_mod"];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/721d0462-9488-435e-9690-f13f11557edc";
|
device = "/dev/disk/by-uuid/721d0462-9488-435e-9690-f13f11557edc";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/CE52-0414";
|
device = "/dev/disk/by-uuid/CE52-0414";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = ["fmask=0077" "dmask=0077"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
|
|
@ -1,142 +1,141 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # hint electron apps to use wayland:
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # hint electron apps to use wayland:
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
libraries = with pkgs; [
|
libraries = with pkgs; [
|
||||||
# Toolchain / C++ runtime
|
# Toolchain / C++ runtime
|
||||||
stdenv.cc.cc # libc, libgcc, libstdc++
|
stdenv.cc.cc # libc, libgcc, libstdc++
|
||||||
stdenv.cc.cc.lib # sometimes needed explicitly
|
stdenv.cc.cc.lib # sometimes needed explicitly
|
||||||
|
|
||||||
# Compression / archive
|
# Compression / archive
|
||||||
zlib
|
zlib
|
||||||
zstd
|
zstd
|
||||||
xz
|
xz
|
||||||
bzip2
|
bzip2
|
||||||
|
|
||||||
# Crypto / TLS / networking
|
# Crypto / TLS / networking
|
||||||
openssl
|
openssl
|
||||||
curl
|
curl
|
||||||
libssh
|
libssh
|
||||||
|
|
||||||
# Core system libs
|
# Core system libs
|
||||||
attr
|
attr
|
||||||
acl
|
acl
|
||||||
util-linux
|
util-linux
|
||||||
libsodium
|
libsodium
|
||||||
systemd # libudev, libsystemd
|
systemd # libudev, libsystemd
|
||||||
libxml2
|
libxml2
|
||||||
expat
|
expat
|
||||||
|
|
||||||
# Graphics / X11 / desktop
|
# Graphics / X11 / desktop
|
||||||
libx11
|
libx11
|
||||||
libxext
|
libxext
|
||||||
libxfixes
|
libxfixes
|
||||||
libxdamage
|
libxdamage
|
||||||
libxcomposite
|
libxcomposite
|
||||||
libxrandr
|
libxrandr
|
||||||
libxcb
|
libxcb
|
||||||
libdrm
|
libdrm
|
||||||
mesa
|
mesa
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
|
||||||
# Audio / desktop integration
|
# Audio / desktop integration
|
||||||
alsa-lib
|
alsa-lib
|
||||||
dbus
|
dbus
|
||||||
cups
|
cups
|
||||||
|
|
||||||
# GLib / GTK stack (lots of GUI apps, Electron, etc.)
|
# GLib / GTK stack (lots of GUI apps, Electron, etc.)
|
||||||
glib
|
glib
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
pango
|
pango
|
||||||
cairo
|
cairo
|
||||||
atk
|
atk
|
||||||
gtk3
|
gtk3
|
||||||
|
|
||||||
# NSS/NSPR (Firefox, Electron, many apps)
|
# NSS/NSPR (Firefox, Electron, many apps)
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.systemd-boot.memtest86.enable = true;
|
|
||||||
boot.loader.systemd-boot.netbootxyz.enable = true;
|
|
||||||
boot.loader.timeout = 1;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
systemd.settings.Manager.DefaultTimeoutStopSec = "10s";
|
|
||||||
systemd.settings.Manager.DefaultTimeoutStartSec = "10s";
|
|
||||||
systemd.settings.Manager.DefaultTimeoutAbortSec = "10s";
|
|
||||||
systemd.settings.Manager.DefaultDeviceTimeoutSec = "10s";
|
|
||||||
systemd.services.systemd-user-sessions.enable = false;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
|
|
||||||
powerManagement.enable = true;
|
|
||||||
services.thermald.enable = true;
|
|
||||||
services.pcscd.enable = true;
|
|
||||||
services.fwupd.enable = true;
|
|
||||||
services.gvfs.enable = true;
|
|
||||||
services.fstrim.enable = true;
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
PermitRootLogin = "no";
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk-sans
|
|
||||||
noto-fonts-color-emoji
|
|
||||||
iosevka
|
|
||||||
roboto
|
|
||||||
font-awesome
|
|
||||||
jetbrains-mono
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
nerd-fonts.ubuntu
|
|
||||||
nerd-fonts.zed-mono
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
boot.loader.systemd-boot.enable = true;
|
||||||
android-tools
|
boot.loader.systemd-boot.memtest86.enable = true;
|
||||||
virtiofsd
|
boot.loader.systemd-boot.netbootxyz.enable = true;
|
||||||
wget
|
boot.loader.timeout = 1;
|
||||||
curl
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
git
|
systemd.settings.Manager.DefaultTimeoutStopSec = "10s";
|
||||||
lm_sensors
|
systemd.settings.Manager.DefaultTimeoutStartSec = "10s";
|
||||||
wireguard-tools
|
systemd.settings.Manager.DefaultTimeoutAbortSec = "10s";
|
||||||
|
systemd.settings.Manager.DefaultDeviceTimeoutSec = "10s";
|
||||||
|
systemd.services.systemd-user-sessions.enable = false;
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
|
||||||
# Podman
|
powerManagement.enable = true;
|
||||||
dive
|
services.thermald.enable = true;
|
||||||
podman-tui
|
services.pcscd.enable = true;
|
||||||
docker-compose
|
services.fwupd.enable = true;
|
||||||
];
|
services.gvfs.enable = true;
|
||||||
|
services.fstrim.enable = true;
|
||||||
nix.gc = {
|
services.openssh = {
|
||||||
automatic = true;
|
enable = true;
|
||||||
dates = "daily";
|
settings = {
|
||||||
options = "--delete-older-than 2d";
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.containers.enable = true;
|
fonts.packages = with pkgs; [
|
||||||
virtualisation = {
|
noto-fonts
|
||||||
podman = {
|
noto-fonts-cjk-sans
|
||||||
enable = true;
|
noto-fonts-color-emoji
|
||||||
dockerCompat = true;
|
iosevka
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
roboto
|
||||||
};
|
font-awesome
|
||||||
};
|
jetbrains-mono
|
||||||
|
nerd-fonts.fira-code
|
||||||
|
nerd-fonts.ubuntu
|
||||||
|
nerd-fonts.zed-mono
|
||||||
|
];
|
||||||
|
|
||||||
services.resolved = {
|
environment.systemPackages = with pkgs; [
|
||||||
enable = pkgs.lib.mkDefault true;
|
android-tools
|
||||||
settings.Resolve.FallbackDNS = [ "1.1.1.1" "1.0.0.1" ];
|
virtiofsd
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
git
|
||||||
|
lm_sensors
|
||||||
|
wireguard-tools
|
||||||
|
|
||||||
|
# Podman
|
||||||
|
dive
|
||||||
|
podman-tui
|
||||||
|
docker-compose
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
|
options = "--delete-older-than 2d";
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.containers.enable = true;
|
||||||
|
virtualisation = {
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
};
|
};
|
||||||
networking.nameservers = pkgs.lib.mkDefault ["1.1.1.1" "1.0.0.1"];
|
};
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
enable = pkgs.lib.mkDefault true;
|
||||||
|
settings.Resolve.FallbackDNS = ["1.1.1.1" "1.0.0.1"];
|
||||||
|
};
|
||||||
|
networking.nameservers = pkgs.lib.mkDefault ["1.1.1.1" "1.0.0.1"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,65 +1,68 @@
|
||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
inputs,
|
||||||
programs.appimage.enable = true;
|
pkgs,
|
||||||
programs.appimage.binfmt = true;
|
...
|
||||||
|
}: {
|
||||||
|
services.udev.packages = [pkgs.yubikey-personalization];
|
||||||
|
programs.appimage.enable = true;
|
||||||
|
programs.appimage.binfmt = true;
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
vulkan-validation-layers
|
vulkan-validation-layers
|
||||||
vulkan-extension-layer
|
vulkan-extension-layer
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withUWSM = true;
|
withUWSM = true;
|
||||||
};
|
};
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = pkgs.lib.mkDefault true;
|
enable = pkgs.lib.mkDefault true;
|
||||||
settings = rec {
|
settings = rec {
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "uwsm start hyprland-uwsm.desktop";
|
command = "uwsm start hyprland-uwsm.desktop";
|
||||||
user = "user";
|
user = "user";
|
||||||
};
|
};
|
||||||
default_session = initial_session;
|
default_session = initial_session;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_TIME = "en_GB.UTF-8";
|
LC_TIME = "en_GB.UTF-8";
|
||||||
};
|
};
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
LC_TIME = "en_GB.UTF-8";
|
LC_TIME = "en_GB.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Calendar
|
# Calendar
|
||||||
# Add the server using gnome-online-accounts:
|
# Add the server using gnome-online-accounts:
|
||||||
# nix-shell -p gnome-control-center --run "gnome-control-center"
|
# nix-shell -p gnome-control-center --run "gnome-control-center"
|
||||||
# Just add the main webdav server and gnome-calendar will automatically pick up all available calendars.
|
# Just add the main webdav server and gnome-calendar will automatically pick up all available calendars.
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
services.gnome.evolution-data-server.enable = true;
|
services.gnome.evolution-data-server.enable = true;
|
||||||
services.gnome.gnome-online-accounts.enable = true;
|
services.gnome.gnome-online-accounts.enable = true;
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
services.gnome.sushi.enable = true;
|
services.gnome.sushi.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
Experimental = true;
|
Experimental = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services.blueman.enable = true;
|
};
|
||||||
|
services.blueman.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,64 +1,70 @@
|
||||||
{pkgs, serverIP, ...}:
|
{
|
||||||
|
pkgs,
|
||||||
let
|
serverIP,
|
||||||
sharePath = "/home/server";
|
...
|
||||||
mountPath = "/home/server";
|
}: let
|
||||||
common_options = [
|
sharePath = "/home/server";
|
||||||
"noauto"
|
mountPath = "/home/server";
|
||||||
"_netdev"
|
common_options = [
|
||||||
"soft"
|
"noauto"
|
||||||
"bg"
|
"_netdev"
|
||||||
"intr"
|
"soft"
|
||||||
# "x-systemd.automount"
|
"bg"
|
||||||
"x-systemd.idle-timeout=600"
|
"intr"
|
||||||
"x-systemd.device-timeout=2s"
|
# "x-systemd.automount"
|
||||||
"x-systemd.mount-timeout=2s"
|
"x-systemd.idle-timeout=600"
|
||||||
"timeo=5"
|
"x-systemd.device-timeout=2s"
|
||||||
"x-gvfs-hide"
|
"x-systemd.mount-timeout=2s"
|
||||||
"x-systemd.after=network-online.target"
|
"timeo=5"
|
||||||
"x-systemd.requires=network-online.target"
|
"x-gvfs-hide"
|
||||||
];
|
"x-systemd.after=network-online.target"
|
||||||
bind_options = [
|
"x-systemd.requires=network-online.target"
|
||||||
"bind"
|
];
|
||||||
"x-systemd.after=${builtins.replaceStrings ["/"] ["-"] mountPath}.mount"
|
bind_options =
|
||||||
] ++ common_options;
|
[
|
||||||
|
"bind"
|
||||||
|
"x-systemd.after=${builtins.replaceStrings ["/"] ["-"] mountPath}.mount"
|
||||||
|
]
|
||||||
|
++ common_options;
|
||||||
in {
|
in {
|
||||||
services.rpcbind.enable = true;
|
services.rpcbind.enable = true;
|
||||||
boot.supportedFilesystems = [ "nfs" ];
|
boot.supportedFilesystems = ["nfs"];
|
||||||
fileSystems.${mountPath} = {
|
fileSystems.${mountPath} = {
|
||||||
device = "${serverIP}:${sharePath}";
|
device = "${serverIP}:${sharePath}";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [
|
options =
|
||||||
"x-systemd.after=wg-quick-Tunnel.service"
|
[
|
||||||
"x-systemd.after=wg-quick-OPNsense.service"
|
"x-systemd.after=wg-quick-Tunnel.service"
|
||||||
] ++ common_options;
|
"x-systemd.after=wg-quick-OPNsense.service"
|
||||||
};
|
]
|
||||||
|
++ common_options;
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services."${builtins.replaceStrings ["/"] ["-"] mountPath}-unmount" = {
|
systemd.services."${builtins.replaceStrings ["/"] ["-"] mountPath}-unmount" = {
|
||||||
description = "Unmount NFS share before shutdown";
|
description = "Unmount NFS share before shutdown";
|
||||||
wantedBy = [ "shutdown.target" ];
|
wantedBy = ["shutdown.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
ExecStart = "/bin/true";
|
ExecStart = "/bin/true";
|
||||||
ExecStop = "${pkgs.util-linux}/bin/umount -f -l ${mountPath}";
|
ExecStop = "${pkgs.util-linux}/bin/umount -f -l ${mountPath}";
|
||||||
TimeoutStopSec = "10s";
|
TimeoutStopSec = "10s";
|
||||||
};
|
|
||||||
};
|
|
||||||
fileSystems."/home/user/Workspace" = {
|
|
||||||
device = "/home/server/Workspace";
|
|
||||||
options = bind_options;
|
|
||||||
};
|
|
||||||
fileSystems."/home/user/Documents" = {
|
|
||||||
device = "/home/server/Storage/Thomas/Documents";
|
|
||||||
options = bind_options;
|
|
||||||
};
|
|
||||||
fileSystems."/home/user/Pictures" = {
|
|
||||||
device = "/home/server/Storage/Thomas/Pictures";
|
|
||||||
options = bind_options;
|
|
||||||
};
|
|
||||||
fileSystems."/home/user/Videos" = {
|
|
||||||
device = "/home/server/Storage/Thomas/Videos";
|
|
||||||
options = bind_options;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Workspace" = {
|
||||||
|
device = "/home/server/Workspace";
|
||||||
|
options = bind_options;
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Documents" = {
|
||||||
|
device = "/home/server/Storage/Thomas/Documents";
|
||||||
|
options = bind_options;
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Pictures" = {
|
||||||
|
device = "/home/server/Storage/Thomas/Pictures";
|
||||||
|
options = bind_options;
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Videos" = {
|
||||||
|
device = "/home/server/Storage/Thomas/Videos";
|
||||||
|
options = bind_options;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,26 @@
|
||||||
{ pkgs, config, ... }:
|
|
||||||
{
|
{
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
pkgs,
|
||||||
environment.systemPackages = with pkgs; [
|
config,
|
||||||
pciutils
|
...
|
||||||
file
|
}: {
|
||||||
gnumake
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
gcc
|
environment.systemPackages = with pkgs; [
|
||||||
cudatoolkit
|
pciutils
|
||||||
podman
|
file
|
||||||
nvidia-container-toolkit
|
gnumake
|
||||||
];
|
gcc
|
||||||
nixpkgs.config.cudaSupport = true;
|
cudatoolkit
|
||||||
hardware.nvidia-container-toolkit.enable = true;
|
podman
|
||||||
hardware.nvidia = {
|
nvidia-container-toolkit
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
];
|
||||||
modesetting.enable = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
powerManagement.enable = true;
|
hardware.nvidia-container-toolkit.enable = true;
|
||||||
powerManagement.finegrained = false;
|
hardware.nvidia = {
|
||||||
open = false;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
nvidiaSettings = true;
|
modesetting.enable = true;
|
||||||
};
|
powerManagement.enable = true;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,33 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
boot.initrd.supportedFilesystems = ["zfs"];
|
||||||
boot.initrd.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = ["zfs"];
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
services.zfs.autoScrub.enable = true;
|
||||||
services.zfs.autoScrub.enable = true;
|
services.sanoid = {
|
||||||
services.sanoid = {
|
enable = true;
|
||||||
enable = true;
|
interval = "*:0,15,30,45:00";
|
||||||
interval = "*:0,15,30,45:00";
|
datasets = {
|
||||||
datasets = {
|
"rpool/home" = {
|
||||||
"rpool/home" = {
|
frequently = 8;
|
||||||
frequently = 8;
|
yearly = 0;
|
||||||
yearly = 0;
|
monthly = 0;
|
||||||
monthly = 0;
|
weekly = 0;
|
||||||
weekly = 0;
|
daily = 0;
|
||||||
daily = 0;
|
hourly = 0;
|
||||||
hourly = 0;
|
frequent_period = 15;
|
||||||
frequent_period = 15;
|
autoprune = true;
|
||||||
autoprune = true;
|
autosnap = true;
|
||||||
autosnap = true;
|
};
|
||||||
};
|
"rpool/storage" = {
|
||||||
"rpool/storage" = {
|
frequently = 8;
|
||||||
frequently = 8;
|
yearly = 0;
|
||||||
yearly = 0;
|
monthly = 0;
|
||||||
monthly = 0;
|
weekly = 0;
|
||||||
weekly = 0;
|
daily = 0;
|
||||||
daily = 0;
|
hourly = 0;
|
||||||
hourly = 0;
|
frequent_period = 15;
|
||||||
frequent_period = 15;
|
autoprune = true;
|
||||||
autoprune = true;
|
autosnap = true;
|
||||||
autosnap = true;
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,41 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration used in Docker";
|
description = "Home Manager configuration used in Docker";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
worktimer = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
|
||||||
ref = "cli";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
worktimer = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
||||||
|
ref = "cli";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
system = "x86_64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Docker.nix ];
|
modules = [../../home/Docker.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,162 +1,171 @@
|
||||||
{ lib, inputs, config, pkgs, ... }:
|
{
|
||||||
let
|
lib,
|
||||||
serverIP = "192.168.1.2";
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
serverIP = "192.168.1.2";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../Common/default.nix { inherit inputs pkgs; })
|
(import ../Common/default.nix {inherit inputs pkgs;})
|
||||||
# (import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
# (import ../Common/nvidia.nix { inherit inputs pkgs config; })
|
||||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
(import ../Common/desktop.nix {inherit inputs pkgs config;})
|
||||||
(import ../Common/nfs.nix { inherit pkgs serverIP; })
|
(import ../Common/nfs.nix {inherit pkgs serverIP;})
|
||||||
(import ../Common/android.nix { inherit pkgs; })
|
(import ../Common/android.nix {inherit pkgs;})
|
||||||
];
|
];
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# AMD CPU
|
# AMD CPU
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
|
boot.extraModulePackages = [config.boot.kernelPackages.zenpower];
|
||||||
boot.kernelModules = [ "zenpower amd_pstate=active" ];
|
boot.kernelModules = ["zenpower amd_pstate=active"];
|
||||||
boot.kernelParams = ["amd_pstate=active"];
|
boot.kernelParams = ["amd_pstate=active"];
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = ["amdgpu"];
|
||||||
|
|
||||||
hardware.graphics.extraPackages = with pkgs; [
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
rocmPackages.clr.icd
|
rocmPackages.clr.icd
|
||||||
];
|
];
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||||
];
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
clinfo
|
clinfo
|
||||||
rocmPackages.rpp
|
rocmPackages.rpp
|
||||||
rocmPackages.clr
|
rocmPackages.clr
|
||||||
rocmPackages.hipcc
|
rocmPackages.hipcc
|
||||||
rocmPackages.rocm-smi
|
rocmPackages.rocm-smi
|
||||||
];
|
];
|
||||||
nixpkgs.config.rocmSupport = true;
|
nixpkgs.config.rocmSupport = true;
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
acceleration = "rocm";
|
acceleration = "rocm";
|
||||||
|
};
|
||||||
|
# nixpkgs.config.cudaSupport = true;
|
||||||
|
services.logind.settings.Login = {
|
||||||
|
HandlePowerKey = "suspend";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Virtualization
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
users.users.user.extraGroups = ["libvirtd"];
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
wg0 = {
|
||||||
|
address = ["10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128"];
|
||||||
|
dns = ["10.0.0.1" "fdc9:281f:04d7:9ee9::1"];
|
||||||
|
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
||||||
|
listenPort = 51820;
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
|
allowedIPs = ["10.0.0.1/8"];
|
||||||
|
endpoint = "192.168.1.1:13231";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
# nixpkgs.config.cudaSupport = true;
|
};
|
||||||
services.logind.settings.Login = {
|
|
||||||
HandlePowerKey = "suspend";
|
networking.bridges = {
|
||||||
|
"br0" = {
|
||||||
|
interfaces = ["enp5s0"];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
networking.interfaces.br0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||||
|
boot.kernel.sysctl."net.ipv6.conf.enp5s0.disable_ipv6" = true;
|
||||||
|
|
||||||
# Virtualization
|
# networking.wireless.iwd.enable = true;
|
||||||
virtualisation.libvirtd.enable = true;
|
# networking.wireless.iwd.settings = {
|
||||||
virtualisation.spiceUSBRedirection.enable = true;
|
# IPv6 = {
|
||||||
programs.virt-manager.enable = true;
|
# Enabled = true;
|
||||||
users.users.user.extraGroups = [ "libvirtd" ];
|
# };
|
||||||
|
# Settings = {
|
||||||
|
# AutoConnect = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
networking.wg-quick.interfaces = {
|
# Programs & Services
|
||||||
wg0 = {
|
programs.gnupg.agent.enable = true;
|
||||||
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
services.sunshine = {
|
||||||
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
enable = true;
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
autoStart = false;
|
||||||
listenPort = 51820;
|
capSysAdmin = true;
|
||||||
peers = [{
|
openFirewall = true;
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
};
|
||||||
allowedIPs = [ "10.0.0.1/8" ];
|
programs.steam = {
|
||||||
endpoint = "192.168.1.1:13231";
|
enable = true;
|
||||||
}];
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
networking.bridges = {
|
specialisation = {
|
||||||
"br0" = {
|
vfio.configuration = {
|
||||||
interfaces = [ "enp5s0" ];
|
boot.blacklistedKernelModules = ["k10temp" "nvidia" "nouveau" "radeon" "amdgpu"];
|
||||||
};
|
boot = {
|
||||||
};
|
initrd.kernelModules = [
|
||||||
networking.interfaces.br0.useDHCP = lib.mkDefault true;
|
"kvm-amd"
|
||||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
"vfio_pci"
|
||||||
boot.kernel.sysctl."net.ipv6.conf.enp5s0.disable_ipv6" = true;
|
"vfio"
|
||||||
|
"vfio_iommu_type1"
|
||||||
# networking.wireless.iwd.enable = true;
|
# "amdgpu"
|
||||||
# networking.wireless.iwd.settings = {
|
# "nvidia_modeset"
|
||||||
# IPv6 = {
|
# "nvidia"
|
||||||
# Enabled = true;
|
# "nvidia_uvm"
|
||||||
# };
|
# "nvidia_drm"
|
||||||
# Settings = {
|
|
||||||
# AutoConnect = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
|
|
||||||
# Programs & Services
|
|
||||||
programs.gnupg.agent.enable = true;
|
|
||||||
services.sunshine = {
|
|
||||||
enable = true;
|
|
||||||
autoStart = false;
|
|
||||||
capSysAdmin = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
specialisation = {
|
|
||||||
vfio.configuration = {
|
|
||||||
boot.blacklistedKernelModules = [ "k10temp" "nvidia" "nouveau" "radeon" "amdgpu"];
|
|
||||||
boot = {
|
|
||||||
initrd.kernelModules = [
|
|
||||||
"kvm-amd"
|
|
||||||
"vfio_pci"
|
|
||||||
"vfio"
|
|
||||||
"vfio_iommu_type1"
|
|
||||||
# "amdgpu"
|
|
||||||
# "nvidia_modeset"
|
|
||||||
# "nvidia"
|
|
||||||
# "nvidia_uvm"
|
|
||||||
# "nvidia_drm"
|
|
||||||
];
|
|
||||||
kernelParams = [
|
|
||||||
"amd_pstate=active"
|
|
||||||
"amd_iommu=on"
|
|
||||||
"vfio-pci.ids=10de:1b80,10de:10f0,1002:67df,1002:aaf0,1002:687f,1002:aaf8"
|
|
||||||
];
|
|
||||||
postBootCommands = ''
|
|
||||||
DEVS="0000:0b:00.0 0000:0b:00.1 0000:05:00.0 0000:05:00.1
|
|
||||||
for DEV in $DEVS; do
|
|
||||||
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
|
|
||||||
done
|
|
||||||
modprobe -i vfio-pci
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
boot.extraModprobeConfig = "options vfio-pci ids=10de:1b80,10de:10f0,1002:67df,1002:aaf0,1002:687f,1002:aaf8";
|
|
||||||
services.greetd.enable = lib.mkForce false;
|
|
||||||
};
|
|
||||||
vfio-nvidia.configuration = {
|
|
||||||
boot.blacklistedKernelModules = [ "k10temp" "nvidia" "nouveau" ];
|
|
||||||
boot = {
|
|
||||||
initrd.kernelModules = [
|
|
||||||
"kvm-amd"
|
|
||||||
"vfio_pci"
|
|
||||||
"vfio"
|
|
||||||
"vfio_iommu_type1"
|
|
||||||
"amdgpu"
|
|
||||||
];
|
|
||||||
kernelParams = [
|
|
||||||
"amd_pstate=active"
|
|
||||||
"amd_iommu=on"
|
|
||||||
"vfio-pci.ids=10de:1b80,10de:10f0"
|
|
||||||
];
|
|
||||||
postBootCommands = ''
|
|
||||||
DEVS="0000:0b:00.0 0000:0b:00.1
|
|
||||||
for DEV in $DEVS; do
|
|
||||||
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
|
|
||||||
done
|
|
||||||
modprobe -i vfio-pci
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
boot.extraModprobeConfig = "options vfio-pci ids=10de:1b80,10de:10f0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
fonts.fontDir.enable = true;
|
|
||||||
hardware.sane = {
|
|
||||||
enable = true;
|
|
||||||
extraBackends = [
|
|
||||||
(pkgs.epsonscan2.override { withNonFreePlugins = true; withGui = true; } )
|
|
||||||
];
|
];
|
||||||
|
kernelParams = [
|
||||||
|
"amd_pstate=active"
|
||||||
|
"amd_iommu=on"
|
||||||
|
"vfio-pci.ids=10de:1b80,10de:10f0,1002:67df,1002:aaf0,1002:687f,1002:aaf8"
|
||||||
|
];
|
||||||
|
postBootCommands = ''
|
||||||
|
DEVS="0000:0b:00.0 0000:0b:00.1 0000:05:00.0 0000:05:00.1
|
||||||
|
for DEV in $DEVS; do
|
||||||
|
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
|
||||||
|
done
|
||||||
|
modprobe -i vfio-pci
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
boot.extraModprobeConfig = "options vfio-pci ids=10de:1b80,10de:10f0,1002:67df,1002:aaf0,1002:687f,1002:aaf8";
|
||||||
|
services.greetd.enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
vfio-nvidia.configuration = {
|
||||||
|
boot.blacklistedKernelModules = ["k10temp" "nvidia" "nouveau"];
|
||||||
|
boot = {
|
||||||
|
initrd.kernelModules = [
|
||||||
|
"kvm-amd"
|
||||||
|
"vfio_pci"
|
||||||
|
"vfio"
|
||||||
|
"vfio_iommu_type1"
|
||||||
|
"amdgpu"
|
||||||
|
];
|
||||||
|
kernelParams = [
|
||||||
|
"amd_pstate=active"
|
||||||
|
"amd_iommu=on"
|
||||||
|
"vfio-pci.ids=10de:1b80,10de:10f0"
|
||||||
|
];
|
||||||
|
postBootCommands = ''
|
||||||
|
DEVS="0000:0b:00.0 0000:0b:00.1
|
||||||
|
for DEV in $DEVS; do
|
||||||
|
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
|
||||||
|
done
|
||||||
|
modprobe -i vfio-pci
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
boot.extraModprobeConfig = "options vfio-pci ids=10de:1b80,10de:10f0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fonts.fontDir.enable = true;
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = [
|
||||||
|
(pkgs.epsonscan2.override {
|
||||||
|
withNonFreePlugins = true;
|
||||||
|
withGui = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,32 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||||||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.extraModulePackages = [];
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/daf843cd-8e63-48ed-831a-e055929e86cb";
|
device = "/dev/disk/by-uuid/daf843cd-8e63-48ed-831a-e055929e86cb";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/E1D9-7A48";
|
device = "/dev/disk/by-uuid/E1D9-7A48";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = ["fmask=0077" "dmask=0077"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault false;
|
networking.useDHCP = lib.mkDefault false;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode =
|
hardware.cpu.amd.updateMicrocode =
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,41 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration of server";
|
description = "Home Manager configuration of server";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
worktimer = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
|
||||||
ref = "cli";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
worktimer = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://git.thomasave.be/thomasave/WorkTimer";
|
||||||
|
ref = "cli";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."server" = home-manager.lib.homeManagerConfiguration {
|
system = "x86_64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."server" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Mallorea.nix ];
|
modules = [../../home/Mallorea.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,36 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration of Pi";
|
description = "Home Manager configuration of Pi";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "aarch64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
system = "aarch64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Pi.nix ];
|
modules = [../../home/Pi.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,53 +1,59 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
inputs,
|
||||||
(import ../Common/default.nix { inherit inputs config pkgs; })
|
config,
|
||||||
(import ../Common/nvidia.nix { inherit pkgs config; })
|
pkgs,
|
||||||
# (import ../Common/desktop.nix { inherit inputs pkgs config; })
|
...
|
||||||
];
|
}: {
|
||||||
|
imports = [
|
||||||
|
(import ../Common/default.nix {inherit inputs config pkgs;})
|
||||||
|
(import ../Common/nvidia.nix {inherit pkgs config;})
|
||||||
|
# (import ../Common/desktop.nix { inherit inputs pkgs config; })
|
||||||
|
];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# services.sunshine = {
|
# services.sunshine = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# autoStart = false;
|
# autoStart = false;
|
||||||
# capSysAdmin = true;
|
# capSysAdmin = true;
|
||||||
# openFirewall = true;
|
# openFirewall = true;
|
||||||
# };
|
# };
|
||||||
|
|
||||||
boot.kernelParams = ["mitigations=off"];
|
boot.kernelParams = ["mitigations=off"];
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
address = [ "10.0.0.12/24" ];
|
address = ["10.0.0.12/24"];
|
||||||
privateKeyFile = "/home/user/.secrets/Wireguard/Riva.key";
|
privateKeyFile = "/home/user/.secrets/Wireguard/Riva.key";
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
peers = [{
|
peers = [
|
||||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
{
|
||||||
allowedIPs = [ "10.0.0.1/8" ];
|
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||||
endpoint = "192.168.1.1:13231";
|
allowedIPs = ["10.0.0.1/8"];
|
||||||
}];
|
endpoint = "192.168.1.1:13231";
|
||||||
};
|
}
|
||||||
};
|
];
|
||||||
fileSystems."/home/server/Workspace" = {
|
|
||||||
device = "/mnt/Workspace";
|
|
||||||
fsType = "virtiofs";
|
|
||||||
};
|
|
||||||
fileSystems."/home/server/.cache/fzgo" = {
|
|
||||||
device = "/mnt/fzgo_cache";
|
|
||||||
fsType = "virtiofs";
|
|
||||||
};
|
|
||||||
fileSystems."/home/user/Workspace" = {
|
|
||||||
device = "/home/server/Workspace";
|
|
||||||
options = ["bind"];
|
|
||||||
};
|
|
||||||
services.resolved = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
networking.nameservers = ["192.168.1.2"];
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
fileSystems."/home/server/Workspace" = {
|
||||||
|
device = "/mnt/Workspace";
|
||||||
|
fsType = "virtiofs";
|
||||||
|
};
|
||||||
|
fileSystems."/home/server/.cache/fzgo" = {
|
||||||
|
device = "/mnt/fzgo_cache";
|
||||||
|
fsType = "virtiofs";
|
||||||
|
};
|
||||||
|
fileSystems."/home/user/Workspace" = {
|
||||||
|
device = "/home/server/Workspace";
|
||||||
|
options = ["bind"];
|
||||||
|
};
|
||||||
|
services.resolved = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
networking.nameservers = ["192.168.1.2"];
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
gamescopeSession.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,39 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
|
||||||
[ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
boot.initrd.kernelModules = [];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.extraModulePackages = [];
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/563963bd-8e27-4c9c-a1d6-d204ea7c43ff";
|
device = "/dev/disk/by-uuid/563963bd-8e27-4c9c-a1d6-d204ea7c43ff";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/9F3C-9F3B";
|
device = "/dev/disk/by-uuid/9F3C-9F3B";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = ["fmask=0077" "dmask=0077"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,36 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration of Tolnedra";
|
description = "Home Manager configuration of Tolnedra";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
system = "x86_64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."user" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Tolnedra.nix ];
|
modules = [../../home/Tolnedra.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,36 @@
|
||||||
{
|
{
|
||||||
description = "Home Manager configuration of vault";
|
description = "Home Manager configuration of vault";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs.
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
|
||||||
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
|
||||||
};
|
};
|
||||||
|
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
} @ inputs: let
|
||||||
homeConfigurations."server" = home-manager.lib.homeManagerConfiguration {
|
system = "x86_64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
homeConfigurations."server" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [ ../../home/Vault.nix ];
|
modules = [../../home/Vault.nix];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
}; # allows access to flake inputs in hm modules
|
}; # allows access to flake inputs in hm modules
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue