docs: Add documentation to recent headers

This commit is contained in:
Swarsel 2024-08-10 19:04:27 +02:00
parent 3155f78cda
commit 136c945cfa
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
6 changed files with 580 additions and 611 deletions

File diff suppressed because it is too large Load diff

View file

@ -112,21 +112,7 @@
} }
); );
# pkgs for home-manager builds # NixOS modules that can only be used on NixOS systems
# homepkgs = import nixpkgs { system = "x86_64-linux";
# overlays = [ inputs.emacs-overlay.overlay
# inputs.nur.overlay
# inputs.nixgl.overlay
# (final: _prev: {
# stable = import inputs.nixpkgs-stable {
# inherit (final) system config;
# };
# })
# ];
# config.allowUnfree = true;
# };
# # NixOS modules that can only be used on NixOS systems
nixModules = [ nixModules = [
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
@ -162,7 +148,6 @@
(pkgs: (pkgs:
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes"; NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ]; nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ];
}; };
@ -177,8 +162,6 @@
inputs.nixgl.overlay inputs.nixgl.overlay
]; ];
# NixOS setups - run home-manager as a NixOS module for better compatibility # NixOS setups - run home-manager as a NixOS module for better compatibility
# another benefit - full rebuild on nixos-rebuild switch # another benefit - full rebuild on nixos-rebuild switch
# run rebuild using `nswitch` # run rebuild using `nswitch`
@ -227,20 +210,6 @@
]; ];
}; };
# winters = nixpkgs.lib.nixosSystem {
# specialArgs = { inherit inputs; };
# modules = nixModules ++ [
# inputs.nixos-hardware.nixosModules.framework-16-inch-7040-amd
# ./profiles/winters/nixos.nix
# inputs.home-manager.nixosModules.home-manager
# {
# home-manager.users.swarsel.imports = mixedModules ++ [
# ./profiles/winters/home.nix
# ];
# }
# ];
# };
nginx = nixpkgs.lib.nixosSystem { nginx = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [

View file

@ -18,14 +18,6 @@ _:
categories = [ "Application" ]; categories = [ "Application" ];
}; };
# schlidichat = {
# name = "SchildiChat Matrix Client";
# genericName = "SchildiChat";
# exec = "schildichat-desktop -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";
# terminal = false;
# categories = [ "Application"];
# };
element = { element = {
name = "Element Matrix Client"; name = "Element Matrix Client";
genericName = "Element"; genericName = "Element";

View file

@ -9,10 +9,6 @@
gtk = true; gtk = true;
}; };
extraOptions = [
"--unsupported-gpu"
];
extraSessionCommands = '' extraSessionCommands = ''
export XDG_SESSION_DESKTOP=sway export XDG_SESSION_DESKTOP=sway
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland

View file

@ -10,22 +10,5 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
]; ];
# xdg.portal = {
# enable = true;
# config = {
# common = {
# default = "wlr";
# };
# };
# wlr.enable = true;
# wlr.settings.screencast = {
# output_name = "eDP-2";
# chooser_type = "simple";
# chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
# };
# };
# services.dbus.enable = true;
} }

View file

@ -3,7 +3,45 @@ let
matrixDomain = "matrix2.swarsel.win"; matrixDomain = "matrix2.swarsel.win";
in in
{ {
<< vminitbare>>
services = {
xserver.xkb = {
layout = "us";
variant = "altgr-intl";
};
openssh = {
enable = true;
settings.PermitRootLogin = "yes";
listenAddresses = [{
port = 22;
addr = "0.0.0.0";
}];
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
proxmoxLXC = {
manageNetwork = true; # manage network myself
manageHostName = false; # manage hostname myself
};
networking = {
useDHCP = true;
enableIPv6 = false;
};
users.users.root.openssh.authorizedKeys.keyFiles = [
../../../secrets/keys/authorized_keys
];
system.stateVersion = "23.05"; # TEMPLATE - but probably no need to change
environment.shellAliases = {
nswitch = "cd /.dotfiles; git pull; nixos-rebuild --flake .#$(hostname) switch; cd -;";
};
imports = [ imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix") (modulesPath + "/virtualisation/proxmox-lxc.nix")