This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-05 12:32:57 +02:00
parent 66ef004344
commit 428c531415
66 changed files with 42 additions and 12 deletions

0
.gitattributes vendored Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.vscode/launch.json vendored Normal file → Executable file
View File

0
.vscode/settings.json vendored Normal file → Executable file
View File

11
configuration.nix Normal file → Executable file
View File

@@ -5,20 +5,19 @@ in
imports = [
./system-modules/hardware-configuration.nix
./system-modules/fuse.nix
./system-modules/nvidia.nix # only does stuff if nvidia.enabled
./system-modules/nvidia.nix
./system-modules/users.nix
./system-modules/sound.nix
./system-modules/boot.nix
./system-modules/dm.nix
./system-modules/networking.nix
./system-modules/virtualisation.nix
./system-modules/sshd.nix
./system-modules/hsmw.nix
./system-modules/docker.nix
./system-modules/health_reminder.nix
# ./system-modules/davmail.nix
./system-modules/ollama.nix
# ./system-modules/nx2site.nix
./system-modules/nx2site.nix
];
@@ -50,10 +49,6 @@ in
services.xserver.libinput.enable = true;
hardware.uinput.enable = true;
# log into this machine
services.openssh.enable = false;
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; #
services.blueman.enable = true;

0
flake.lock generated Normal file → Executable file
View File

0
flake.nix Normal file → Executable file
View File

0
home-modules/bitwarden.nix Normal file → Executable file
View File

0
home-modules/chatterino.nix Normal file → Executable file
View File

0
home-modules/discord.nix Normal file → Executable file
View File

0
home-modules/email.nix Normal file → Executable file
View File

0
home-modules/fish.nix Normal file → Executable file
View File

0
home-modules/gestures.nix Normal file → Executable file
View File

0
home-modules/git.nix Normal file → Executable file
View File

0
home-modules/gtk.nix Normal file → Executable file
View File

0
home-modules/hyprland-autoname-workspaces.nix Normal file → Executable file
View File

0
home-modules/hyprland.nix Normal file → Executable file
View File

0
home-modules/kitty.nix Normal file → Executable file
View File

0
home-modules/latex.nix Normal file → Executable file
View File

0
home-modules/mako.nix Normal file → Executable file
View File

0
home-modules/nh.nix Normal file → Executable file
View File

0
home-modules/nixvim.nix Normal file → Executable file
View File

0
home-modules/nvim-lua/options.lua Normal file → Executable file
View File

0
home-modules/nvim-lua/plugin/cmp.lua Normal file → Executable file
View File

0
home-modules/nvim-lua/plugin/lsp.lua Normal file → Executable file
View File

0
home-modules/nvim-lua/plugin/other.lua Normal file → Executable file
View File

0
home-modules/nvim-lua/plugin/telescope.lua Normal file → Executable file
View File

0
home-modules/nvim-lua/plugin/treesitter.lua Normal file → Executable file
View File

0
home-modules/nvim.nix Normal file → Executable file
View File

0
home-modules/nx-gcal-event.nix Normal file → Executable file
View File

0
home-modules/office.nix Normal file → Executable file
View File

0
home-modules/pnx.nix Normal file → Executable file
View File

View File

View File

View File

View File

0
home-modules/python.nix Normal file → Executable file
View File

0
home-modules/qt.nix Normal file → Executable file
View File

0
home-modules/rofi.nix Normal file → Executable file
View File

0
home-modules/ssh.nix Normal file → Executable file
View File

2
home-modules/starship.nix Normal file → Executable file
View File

@@ -169,7 +169,7 @@ lib.mkIf (user != "tv")
vcsh.format = "[\\[vcsh [$symbol$repo\\]]($style)";
hostname = {
format = "[\\[$ssh_symbol$hostname\\]]($style)";
ssh_symbol = "";
ssh_symbol = "󰖟 ";
ssh_only = true;
};
};

0
home-modules/virt-manager.nix Normal file → Executable file
View File

0
home-modules/vscode.nix Normal file → Executable file
View File

0
home-modules/waybar.nix Normal file → Executable file
View File

0
home-modules/wlogout.nix Normal file → Executable file
View File

0
home-modules/yazi.nix Normal file → Executable file
View File

0
home-modules/zoxide.nix Normal file → Executable file
View File

0
home.nix Normal file → Executable file
View File

0
nxlib/ricelib.nix Normal file → Executable file
View File

BIN
secrets/passwords-and-certificates.nix Normal file → Executable file

Binary file not shown.

4
system-modules/boot.nix Normal file → Executable file
View File

@@ -22,8 +22,8 @@
device = "nodev";
# useOSProber = true;
efiSupport = true;
theme = grub-theme-ascii-diana;
font = "${grub-theme-ascii-diana}/unicode.pf2";
#theme = grub-theme-ascii-diana;
#font = "${grub-theme-ascii-diana}/unicode.pf2";
fontSize = 50;
splashImage = null;

0
system-modules/davmail.nix Normal file → Executable file
View File

0
system-modules/dm.nix Normal file → Executable file
View File

0
system-modules/docker.nix Normal file → Executable file
View File

0
system-modules/fuse.nix Normal file → Executable file
View File

0
system-modules/hardware-configuration.nix Normal file → Executable file
View File

0
system-modules/health_reminder.nix Normal file → Executable file
View File

0
system-modules/hsmw.nix Normal file → Executable file
View File

0
system-modules/networking.nix Normal file → Executable file
View File

0
system-modules/nvidia.nix Normal file → Executable file
View File

20
system-modules/nx2site.nix Executable file
View File

@@ -0,0 +1,20 @@
{ config, pkgs, lib, user, host, ... }:
{
imports = if host == "NxACE" then [
] else [];
config = lib.mkIf (host == "NxACE") {
# security.acme = {
# acceptTerms = true;
# defaults.email = "acme@nx2.site";
# certs."nx2.site" = {
# dnsProvider = "namecheap";
# environmentFile = ../secrets/nx2site/namecheap-creds.env;
# };
# };
services.nginx = {
enable = true;
};
};
}

0
system-modules/ollama.nix Normal file → Executable file
View File

0
system-modules/sound.nix Normal file → Executable file
View File

12
system-modules/sshd.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, pkgs, lib, secrets, ... }:
{
services.openssh = {
enable = true;
ports = secrets.nx2site.ssh.ports;
settings = {
PasswordAuthentication = false;
};
};
}

3
system-modules/users.nix Normal file → Executable file
View File

@@ -7,6 +7,9 @@
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "audio" "video" "docker" "libvirtd" "uinput" ];
useDefaultShell = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHzEtnN/GrgXK7yz+0z1x6rKHhYYQhTOFQ6c6Faz79g2 Nx2-ed25519-ssh-key"
];
packages = with pkgs; []; # all in home.nix
};
users.users.tv = lib.mkIf (host == "NxACE") {

0
system-modules/virtualisation.nix Normal file → Executable file
View File