Formatting pass with alejandra
This commit is contained in:
parent
bd8711db77
commit
3a282dbee5
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./home
|
||||
./common.nix
|
||||
|
@ -15,7 +14,7 @@
|
|||
users.users.elitherl = {
|
||||
isNormalUser = true;
|
||||
description = "Evie Litherland-Smith";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
home-manager.users.root = import ./home/H0615/root.nix;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./home
|
||||
./common.nix
|
||||
|
@ -15,7 +14,7 @@
|
|||
users.users.elitherl = {
|
||||
isNormalUser = true;
|
||||
description = "Evie Litherland-Smith";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
home-manager.users.root = import ./home/J0162/root.nix;
|
||||
|
|
14
Vanguard.nix
14
Vanguard.nix
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./home
|
||||
./common.nix
|
||||
|
@ -17,13 +16,16 @@
|
|||
|
||||
networking.hostName = "Vanguard"; # Define your hostname.
|
||||
#networking.wireless.networks."LAN LAN Ranch".pskRaw = "d4c31e976456783b61d573ee49c94f93914a81bf1048c2f2e1e166c36bdfcd4a";
|
||||
networking.nameservers = [ "192.168.1.166" "9.9.9.9" ];
|
||||
networking.firewall = { enable = true; allowedTCPPorts = [ 22 ]; };
|
||||
networking.nameservers = ["192.168.1.166" "9.9.9.9"];
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [22];
|
||||
};
|
||||
|
||||
users.users.xenia = {
|
||||
isNormalUser = true;
|
||||
description = "Evie Litherland-Smith";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
shell = pkgs.fish;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1tJFdbiyJApuVZFvo9E9kjlBwvXZeySqVuS2qGdxha tux@monarch"
|
||||
|
@ -37,7 +39,7 @@
|
|||
# Extra hardware configuration
|
||||
hardware.openrazer = {
|
||||
enable = true;
|
||||
users = [ "xenia" ];
|
||||
users = ["xenia"];
|
||||
};
|
||||
|
||||
system.autoUpgrade = {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
{pkgs, ...}: {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
waybar = super.waybar.overrideAttrs (oldAttrs: {
|
||||
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
||||
});
|
||||
})
|
||||
];
|
||||
|
@ -14,7 +13,7 @@
|
|||
pkgs.pamixer
|
||||
pkgs.pulseaudio
|
||||
];
|
||||
security.pam.services.swaylock = { };
|
||||
security.pam.services.swaylock = {};
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./xserver.nix
|
||||
./sddm.nix
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ stdenv, fetchFromGitHub }:
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}: {
|
||||
sddm-catppuccin-macchiato = stdenv.mkDerivation rec {
|
||||
pname = "sddm-catppuccin-macchiato-theme";
|
||||
version = "1.0";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ./xserver.nix ./sddm.nix ];
|
||||
{pkgs, ...}: {
|
||||
imports = [./xserver.nix ./sddm.nix];
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
sddm-catppuccin-macchiato = pkgs.callPackage ./pkgs/sddm-catppuccin-macchiato.nix { };
|
||||
in
|
||||
{
|
||||
{pkgs, ...}: let
|
||||
sddm-catppuccin-macchiato = pkgs.callPackage ./pkgs/sddm-catppuccin-macchiato.nix {};
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
sddm-catppuccin-macchiato.sddm-catppuccin-macchiato
|
||||
];
|
||||
services.xserver.displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "catppuccin-macchiato";
|
||||
settings = { General = { InputMethod = ""; }; };
|
||||
settings = {General = {InputMethod = "";};};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.mesa ];
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.mesa];
|
||||
programs.gamescope.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./xserver.nix
|
||||
./sddm.nix
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./xserver.nix
|
||||
./sddm.nix
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "gb";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }: {
|
||||
imports = [ ../work.nix ];
|
||||
{...}: {
|
||||
imports = [../work.nix];
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "elitherl";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{...}: {
|
||||
imports = [
|
||||
../env
|
||||
../tui
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }: {
|
||||
imports = [ ../work.nix ];
|
||||
{...}: {
|
||||
imports = [../work.nix];
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "elitherl";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{...}: {
|
||||
imports = [
|
||||
../env
|
||||
../tui
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
../env
|
||||
../tui
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{...}: {
|
||||
imports = [
|
||||
../env
|
||||
../tui
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [ ../personal.nix ];
|
||||
{pkgs, ...}: {
|
||||
imports = [../personal.nix];
|
||||
home.username = "xenia";
|
||||
home.homeDirectory = "/home/xenia";
|
||||
home.stateVersion = "22.11";
|
||||
home.packages = with pkgs; [ prismlauncher ];
|
||||
home.packages = with pkgs; [prismlauncher];
|
||||
|
||||
# xdg.configFile."hypr/hyprpaper.conf".source = ../desktop/config/hypr/hyprpaper-Vanguard.conf;
|
||||
# wayland.windowManager.hyprland.extraConfig = ''
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }:
|
||||
let
|
||||
{...}: let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{ imports = [ (import "${home-manager}/nixos") ]; }
|
||||
in {imports = [(import "${home-manager}/nixos")];}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
nitrogen
|
||||
polybar
|
||||
|
@ -18,7 +17,7 @@
|
|||
pointer_action3 = "resize_corner";
|
||||
};
|
||||
monitors = {
|
||||
"primary" = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" ];
|
||||
"primary" = ["I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX"];
|
||||
};
|
||||
rules = {
|
||||
"Xfce4-terminal".state = "floating";
|
||||
|
@ -37,6 +36,6 @@
|
|||
"Bitwarden".desktop = "^7";
|
||||
"Nxplayer.bin".desktop = "^8";
|
||||
};
|
||||
extraConfig = builtins.readFile (./config/bspwm/startup.sh);
|
||||
extraConfig = builtins.readFile ./config/bspwm/startup.sh;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
jq
|
||||
socat
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
gtk = {
|
||||
enable = true;
|
||||
cursorTheme = {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
{pkgs, ...}: let
|
||||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
hyprland = (import flake-compat {
|
||||
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/2df0d034bc4a18fafb3524401eeeceaa6b23e753.tar.gz";
|
||||
}).defaultNix;
|
||||
in
|
||||
{
|
||||
hyprland =
|
||||
(import flake-compat {
|
||||
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/2df0d034bc4a18fafb3524401eeeceaa6b23e753.tar.gz";
|
||||
})
|
||||
.defaultNix;
|
||||
in {
|
||||
imports = [
|
||||
hyprland.homeManagerModules.default
|
||||
./swaylock.nix
|
||||
|
@ -29,6 +29,9 @@ in
|
|||
xdg.configFile."hypr/window-rules.conf".source = ./config/hypr/window-rules.conf;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland = { enable = true; hidpi = true; };
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.picom = {
|
||||
enable = true;
|
||||
backend = "glx";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ bluez ];
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [bluez];
|
||||
services.polybar = {
|
||||
enable = true;
|
||||
config = ./config/polybar/polybar.ini;
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
{pkgs, ...}: let
|
||||
powermenu = pkgs.writeShellScriptBin "powermenu" (builtins.readFile ./scripts/powermenu);
|
||||
power-profiles = pkgs.writeShellScriptBin "power-profiles" (builtins.readFile ./scripts/power-profiles);
|
||||
in
|
||||
{
|
||||
imports = [ ../gui/foot.nix ];
|
||||
home.packages = with pkgs; [ papirus-icon-theme powermenu power-profiles ];
|
||||
in {
|
||||
imports = [../gui/foot.nix];
|
||||
home.packages = with pkgs; [papirus-icon-theme powermenu power-profiles];
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
location = "center";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
#xdg.configFile."sway".source = ./config/sway;
|
||||
home.packages = with pkgs; [ brightnessctl ];
|
||||
wayland.windowManager.sway = { enable = true; };
|
||||
home.packages = with pkgs; [brightnessctl];
|
||||
wayland.windowManager.sway = {enable = true;};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.sxhkd = {
|
||||
enable = true;
|
||||
keybindings = {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
(nerdfonts.override {fonts = ["FiraCode"];})
|
||||
bluez
|
||||
];
|
||||
xdg.configFile."waybar" = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./gtk.nix
|
||||
./bspwm.nix
|
||||
|
|
|
@ -1,21 +1,25 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
xresources.extraConfig = builtins.readFile
|
||||
{pkgs, ...}: {
|
||||
xresources.extraConfig =
|
||||
builtins.readFile
|
||||
(
|
||||
pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "xresources";
|
||||
rev = "d82c02323e05158ad35f302771e3695affafab78";
|
||||
sha256 = "irRQPjvcTH6AUC07Sm2l77CkrZQNHNJXxBDBSIhl1Fg=";
|
||||
} + "/macchiato.Xresources"
|
||||
) + "\n" + builtins.readFile (
|
||||
pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "xresources";
|
||||
rev = "d82c02323e05158ad35f302771e3695affafab78";
|
||||
sha256 = "irRQPjvcTH6AUC07Sm2l77CkrZQNHNJXxBDBSIhl1Fg=";
|
||||
}
|
||||
+ "/macchiato.Xresources"
|
||||
)
|
||||
+ "\n"
|
||||
+ builtins.readFile (
|
||||
pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "urxvt";
|
||||
rev = "ccd8eb763edd0a382b5e9bbfbd9697c4d4129edf";
|
||||
sha256 = "YFlSGJzWWB57eSXiUY4l/mSBbOY0an+qej6//YLSiuE=";
|
||||
} + "/macchiato.Xresources"
|
||||
);
|
||||
}
|
||||
+ "/macchiato.Xresources"
|
||||
);
|
||||
}
|
||||
|
|
4
home/env/bash.nix
vendored
4
home/env/bash.nix
vendored
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
|
6
home/env/bat.nix
vendored
6
home/env/bat.nix
vendored
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
|
@ -12,7 +11,8 @@
|
|||
repo = "bat";
|
||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||
} + "/Catppuccin-macchiato.tmTheme");
|
||||
}
|
||||
+ "/Catppuccin-macchiato.tmTheme");
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
5
home/env/default.nix
vendored
5
home/env/default.nix
vendored
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./bash.nix
|
||||
./bat.nix
|
||||
|
@ -11,5 +10,5 @@
|
|||
./starship.nix
|
||||
./zsh.nix
|
||||
];
|
||||
home.packages = with pkgs; [ dig file gnumake silver-searcher ];
|
||||
home.packages = with pkgs; [dig file gnumake silver-searcher];
|
||||
}
|
||||
|
|
3
home/env/direnv.nix
vendored
3
home/env/direnv.nix
vendored
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.direnv.enable = true;
|
||||
}
|
||||
|
|
4
home/env/fish.nix
vendored
4
home/env/fish.nix
vendored
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
|
|
7
home/env/keychain.nix
vendored
7
home/env/keychain.nix
vendored
|
@ -1,9 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.keychain = {
|
||||
enable = true;
|
||||
extraFlags = [ "--quiet" "--noask" "--ignore-missing" ];
|
||||
keys = [ "id_rsa" "id_ed25519" ];
|
||||
extraFlags = ["--quiet" "--noask" "--ignore-missing"];
|
||||
keys = ["id_rsa" "id_ed25519"];
|
||||
enableXsessionIntegration = true;
|
||||
};
|
||||
}
|
||||
|
|
3
home/env/nix-index.nix
vendored
3
home/env/nix-index.nix
vendored
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.nix-index.enable = true;
|
||||
}
|
||||
|
|
3
home/env/readline.nix
vendored
3
home/env/readline.nix
vendored
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.readline = {
|
||||
enable = true;
|
||||
includeSystemConfig = true;
|
||||
|
|
5
home/env/starship.nix
vendored
5
home/env/starship.nix
vendored
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode"];})];
|
||||
xdg.configFile."starship.toml".source = ./config/starship.toml;
|
||||
programs.starship.enable = true;
|
||||
}
|
||||
|
|
4
home/env/zsh.nix
vendored
4
home/env/zsh.nix
vendored
|
@ -1,6 +1,4 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Evie Litherland-Smith";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
{...}: {
|
||||
imports = [./common.nix];
|
||||
programs.git.userEmail = "evie@xenia.me.uk";
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
{...}: {
|
||||
imports = [./common.nix];
|
||||
programs.git.userEmail = "evie.litherland-smith@ukaea.uk";
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ./wezterm.nix ];
|
||||
{pkgs, ...}: {
|
||||
imports = [./wezterm.nix];
|
||||
programs.firefox.enable = true;
|
||||
programs.librewolf.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode"];})];
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
package = with pkgs; (nerdfonts.override { fonts = [ "FiraCode" ]; });
|
||||
package = with pkgs; (nerdfonts.override {fonts = ["FiraCode"];});
|
||||
name = "Fira Code Nerd Font";
|
||||
size = 14;
|
||||
};
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ (nerdfonts.override { fonts = [ "FiraCode" ]; }) ];
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode"];})];
|
||||
programs.urxvt = {
|
||||
enable = true;
|
||||
fonts = [ "xft:FiraCode Nerd Font Mono:pixelsize=16" ];
|
||||
fonts = ["xft:FiraCode Nerd Font Mono:pixelsize=16"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./env
|
||||
./gui
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
forwardAgent = true;
|
||||
|
@ -7,6 +6,6 @@
|
|||
serverAliveCountMax = 3;
|
||||
controlMaster = "auto";
|
||||
controlPersist = "1s";
|
||||
matchBlocks = { "git.*".user = "git"; };
|
||||
matchBlocks = {"git.*".user = "git";};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
{lib, ...}: {
|
||||
imports = [./common.nix];
|
||||
programs.ssh.matchBlocks = {
|
||||
"vanguard" = { user = "xenia"; };
|
||||
"git.xenia.me.uk" = lib.hm.dag.entryBefore [ "git.*" ] { user = "gitea"; };
|
||||
"vanguard *xenia.me.uk" = lib.hm.dag.entryAfter [ "vanguard" ] {
|
||||
"vanguard" = {user = "xenia";};
|
||||
"git.xenia.me.uk" = lib.hm.dag.entryBefore ["git.*"] {user = "gitea";};
|
||||
"vanguard *xenia.me.uk" = lib.hm.dag.entryAfter ["vanguard"] {
|
||||
hostname = "192.168.1.166";
|
||||
port = 2222;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
home.packages = with pkgs; [ sshfs ];
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./common.nix];
|
||||
home.packages = with pkgs; [sshfs];
|
||||
programs.ssh.matchBlocks = {
|
||||
"batch" = {
|
||||
user = "cxsbatch";
|
||||
|
@ -20,10 +23,10 @@
|
|||
"freia" = {
|
||||
hostname = "freia022.hpc.l";
|
||||
};
|
||||
"freia???" = lib.hm.dag.entryAfter [ "freia" ] {
|
||||
"freia???" = lib.hm.dag.entryAfter ["freia"] {
|
||||
hostname = "%h.hpc.l";
|
||||
};
|
||||
"freia* jupyter" = lib.hm.dag.entryAfter [ "freia" "freia???" "jupyter" ] {
|
||||
"freia* jupyter" = lib.hm.dag.entryAfter ["freia" "freia???" "jupyter"] {
|
||||
user = "elitherl";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
showIcons = true;
|
||||
theme = {
|
||||
lightTheme = false;
|
||||
activeBorderColor = [ "#a6da95" "bold" ];
|
||||
inactiveBorderColor = [ "#cad3f5" ];
|
||||
optionsTextColor = [ "#8aadf4" ];
|
||||
selectedLineBgColor = [ "#363a4f" ];
|
||||
selectedRangeBgColor = [ "#363a4f" ];
|
||||
cherryPickedCommitBgColor = [ "#8bd5ca" ];
|
||||
cherryPickedCommitFgColor = [ "#8aadf4" ];
|
||||
unstagedChangesColor = [ "red" ];
|
||||
activeBorderColor = ["#a6da95" "bold"];
|
||||
inactiveBorderColor = ["#cad3f5"];
|
||||
optionsTextColor = ["#8aadf4"];
|
||||
selectedLineBgColor = ["#363a4f"];
|
||||
selectedRangeBgColor = ["#363a4f"];
|
||||
cherryPickedCommitBgColor = ["#8bd5ca"];
|
||||
cherryPickedCommitFgColor = ["#8aadf4"];
|
||||
unstagedChangesColor = ["red"];
|
||||
};
|
||||
};
|
||||
update.method = "never";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./lazygit.nix
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
settings = import ./config/lazygit.nix;
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
{pkgs, ...}: {
|
||||
imports = [./common.nix];
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
extraConfig = builtins.readFile (./config/tmux.conf) + "\n" + builtins.readFile (
|
||||
pkgs.fetchFromGitHub
|
||||
extraConfig =
|
||||
builtins.readFile ./config/tmux.conf
|
||||
+ "\n"
|
||||
+ builtins.readFile (
|
||||
pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "tmux";
|
||||
rev = "4e48b09a76829edc7b55fbb15467cf0411f07931";
|
||||
sha256 = "bXEsxt4ozl3cAzV3ZyvbPsnmy0RAdpLxHwN82gvjLdU=";
|
||||
} + "/catppuccin-macchiato.tmuxtheme"
|
||||
);
|
||||
}
|
||||
+ "/catppuccin-macchiato.tmuxtheme"
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./env
|
||||
./gui
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./traefik.nix ];
|
||||
{...}: {
|
||||
imports = [./traefik.nix];
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
mutableSettings = true;
|
||||
|
@ -8,11 +7,15 @@
|
|||
openFirewall = true;
|
||||
};
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 53 ];
|
||||
allowedUDPPorts = [ 53 ];
|
||||
allowedTCPPorts = [53];
|
||||
allowedUDPPorts = [53];
|
||||
};
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
routers.adguard = { rule = "Host(`guard.xenia.me.uk`)"; service = "adguard-webinterface"; tls = { certResolver = "default"; }; };
|
||||
services.adguard-webinterface.loadBalancer.servers = [{ url = "http://localhost:3001"; }];
|
||||
routers.adguard = {
|
||||
rule = "Host(`guard.xenia.me.uk`)";
|
||||
service = "adguard-webinterface";
|
||||
tls = {certResolver = "default";};
|
||||
};
|
||||
services.adguard-webinterface.loadBalancer.servers = [{url = "http://localhost:3001";}];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [ "127.0.0.1/8" "::1" "192.168.1.0/16" ];
|
||||
bantime-increment = { enable = true; };
|
||||
ignoreIP = ["127.0.0.1/8" "::1" "192.168.1.0/16"];
|
||||
bantime-increment = {enable = true;};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||
{...}: {
|
||||
imports = [./traefik.nix ./fail2ban.nix];
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -13,10 +12,14 @@
|
|||
};
|
||||
appName = "Gitea";
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 2222 ];
|
||||
networking.firewall.allowedTCPPorts = [80 443 2222];
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
routers.gitea = { rule = "Host(`git.xenia.me.uk`)"; service = "gitea-websecure"; tls = { certResolver = "default"; }; };
|
||||
services.gitea-websecure.loadBalancer.servers = [{ url = "http://localhost:3000"; }];
|
||||
routers.gitea = {
|
||||
rule = "Host(`git.xenia.me.uk`)";
|
||||
service = "gitea-websecure";
|
||||
tls = {certResolver = "default";};
|
||||
};
|
||||
services.gitea-websecure.loadBalancer.servers = [{url = "http://localhost:3000";}];
|
||||
};
|
||||
services.fail2ban.jails.gitea = ''
|
||||
enabled = true
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [./traefik.nix ./fail2ban.nix];
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud26;
|
||||
|
@ -10,13 +13,18 @@
|
|||
adminpassFile = "/secrets/nextcloud_admin.txt";
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [{ addr = "localhost"; port = 8000; }];
|
||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [
|
||||
{
|
||||
addr = "localhost";
|
||||
port = 8000;
|
||||
}
|
||||
];
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
routers.nextcloud = {
|
||||
rule = "Host(`cloud.xenia.me.uk`)";
|
||||
service = "nextcloud-webinterface";
|
||||
tls = { certResolver = "default"; };
|
||||
tls = {certResolver = "default";};
|
||||
};
|
||||
services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:8000"; }];
|
||||
services.nextcloud-webinterface.loadBalancer.servers = [{url = "http://localhost:8000";}];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 2222 ];
|
||||
ports = [2222];
|
||||
settings = {
|
||||
UseDns = true;
|
||||
PermitRootLogin = "no";
|
||||
|
|
|
@ -1,30 +1,36 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./fail2ban.nix ];
|
||||
{...}: {
|
||||
imports = [./fail2ban.nix];
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
staticConfigOptions = {
|
||||
api = { insecure = true; };
|
||||
api = {insecure = true;};
|
||||
entryPoints = {
|
||||
http = { address = ":80"; };
|
||||
https = { address = ":443"; };
|
||||
http = {address = ":80";};
|
||||
https = {address = ":443";};
|
||||
};
|
||||
certificatesResolvers = {
|
||||
default = {
|
||||
acme = {
|
||||
email = "evie@xenia.me.uk";
|
||||
storage = "/var/lib/traefik/acme.json";
|
||||
httpChallenge = { entryPoint = "http"; };
|
||||
httpChallenge = {entryPoint = "http";};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
dynamicConfigOptions.http = {
|
||||
routers.traefik = { rule = "Host(`traefik.xenia.me.uk`)"; service = "traefik-webinterface"; tls = { certResolver = "default"; }; };
|
||||
services.traefik-webinterface.loadBalancer.servers = [{ url = "http://localhost:8080"; }];
|
||||
routers.traefik = {
|
||||
rule = "Host(`traefik.xenia.me.uk`)";
|
||||
service = "traefik-webinterface";
|
||||
tls = {certResolver = "default";};
|
||||
};
|
||||
services.traefik-webinterface.loadBalancer.servers = [{url = "http://localhost:8080";}];
|
||||
};
|
||||
};
|
||||
networking.firewall = { enable = true; allowedTCPPorts = [ 80 443 8080 ]; };
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80 443 8080];
|
||||
};
|
||||
services.fail2ban.jails.traefik = ''
|
||||
enabled = true
|
||||
filter = traefik-auth
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./default.nix ./devices/ion.nix ];
|
||||
{...}: {
|
||||
imports = [./default.nix ./devices/ion.nix];
|
||||
services.syncthing = {
|
||||
user = "elitherl";
|
||||
group = "users";
|
||||
|
@ -10,7 +9,7 @@
|
|||
path = "/home/elitherl/Sync";
|
||||
label = "UKAEA";
|
||||
id = "fwzht-j7hrc";
|
||||
devices = [ "ion" ];
|
||||
devices = ["ion"];
|
||||
ignorePerms = true;
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
./devices/ion.nix
|
||||
|
@ -14,42 +13,42 @@
|
|||
folders = {
|
||||
"Archive" = {
|
||||
path = "/mnt/secondary/syncthing/archive";
|
||||
devices = [ "ion" "monarch" "northstar" ];
|
||||
devices = ["ion" "monarch" "northstar"];
|
||||
enable = true;
|
||||
};
|
||||
"Books" = {
|
||||
path = "/mnt/secondary/syncthing/books";
|
||||
devices = [ "monarch" "northstar" "remarkable" ];
|
||||
devices = ["monarch" "northstar" "remarkable"];
|
||||
enable = true;
|
||||
};
|
||||
"Camera" = {
|
||||
path = "/mnt/secondary/syncthing/camera";
|
||||
devices = [ "ion" ];
|
||||
devices = ["ion"];
|
||||
enable = true;
|
||||
};
|
||||
"Documents" = {
|
||||
path = "/mnt/secondary/syncthing/documents";
|
||||
devices = [ "monarch" "northstar" ];
|
||||
devices = ["monarch" "northstar"];
|
||||
enable = true;
|
||||
};
|
||||
"Exports" = {
|
||||
path = "/mnt/secondary/syncthing/exports";
|
||||
devices = [ "monarch"];
|
||||
devices = ["monarch"];
|
||||
enable = true;
|
||||
};
|
||||
"Movies" = {
|
||||
path = "/mnt/secondary/syncthing/movies";
|
||||
devices = [ "ion" "monarch" "northstar" ];
|
||||
devices = ["ion" "monarch" "northstar"];
|
||||
enable = true;
|
||||
};
|
||||
"Pictures" = {
|
||||
path = "/mnt/secondary/syncthing/pictures";
|
||||
devices = [ "ion" "monarch" "northstar" ];
|
||||
devices = ["ion" "monarch" "northstar"];
|
||||
enable = true;
|
||||
};
|
||||
"Xochitl" = {
|
||||
path = "/mnt/secondary/syncthing/xochitl";
|
||||
devices = [ "remarkable" ];
|
||||
devices = ["remarkable"];
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [ ./folders ];
|
||||
{lib, ...}: {
|
||||
imports = [./folders];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."H0615" = { id = "VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."H0615" = {id = "VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF";};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."ion" = { id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."ion" = {id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."monarch" = { id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."monarch" = {id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."northstar" = { id = "DMQZNMB-BM3SSE4-5XV2GHE-IDRNFTS-QNZSICS-6JWHUCV-O3NHMWY-2OBC2QD"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."northstar" = {id = "DMQZNMB-BM3SSE4-5XV2GHE-IDRNFTS-QNZSICS-6JWHUCV-O3NHMWY-2OBC2QD";};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."remarkable" = { id = "GHB6JKS-JOA3HHP-TYHB3IJ-GLV26QW-RWRZAMG-XYFGFB6-QLUHDSH-GNPZVAO"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."remarkable" = {id = "GHB6JKS-JOA3HHP-TYHB3IJ-GLV26QW-RWRZAMG-XYFGFB6-QLUHDSH-GNPZVAO";};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing.devices."vanguard" = { id = "YNGBLJP-TWY6Y3C-DPPYAWL-3ZQFNQH-RDPIU5T-L54UI62-FPPA3JQ-WYXBZQZ"; };
|
||||
{...}: {
|
||||
services.syncthing.devices."vanguard" = {id = "YNGBLJP-TWY6Y3C-DPPYAWL-3ZQFNQH-RDPIU5T-L54UI62-FPPA3JQ-WYXBZQZ";};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
{lib, ...}: {
|
||||
services.syncthing = {
|
||||
folders = {
|
||||
"Archive" = {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
systemd.timers."nixos-pull-config" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
wantedBy = ["timers.target"];
|
||||
description = "Timer to update /etc/nixos/config/ repository";
|
||||
timerConfig = {
|
||||
OnBootSec = "5m";
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
let
|
||||
myAppEnv = pkgs.poetry2nix.mkPoetryEnv {
|
||||
projectDir = ./.;
|
||||
editablePackageSources = {
|
||||
my-app = ./src;
|
||||
};
|
||||
};
|
||||
in
|
||||
myAppEnv.env
|
|
@ -1,6 +1,10 @@
|
|||
{ pkgs ? import <nixpkgs> { }, python ? pkgs.python39, ... }:
|
||||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
python ? pkgs.python39,
|
||||
...
|
||||
}:
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ (python.withPackages (ps: with ps; [ pip wheel ])) poetry git ];
|
||||
nativeBuildInputs = with pkgs; [(python.withPackages (ps: with ps; [pip wheel])) poetry git];
|
||||
shellHook = ''
|
||||
[ -d .venv ] || python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
|
|
Loading…
Reference in a new issue