Merge branch 'main' of github.com:bloxx12/nichts

This commit is contained in:
vali 2024-04-12 02:07:58 +02:00
commit 0dc03375b6
8 changed files with 197 additions and 3 deletions

View file

@ -13,4 +13,15 @@ in {
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
]; ];
}; };
dyonisos = lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit lib inputs self; };
modules = [
./dyonisos
../modules
inputs.home-manager.nixosModules.home-manager
inputs.agenix.nixosModules.default
];
};
} }

View file

@ -0,0 +1,78 @@
{ config, inputs, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
time.timeZone = "Europe/Zurich";
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;
programs.kdeconnect.enable = true;
myOptions = {
other = {
system = {
hostname = "dyonisos";
username = "lars";
};
home-manager = {
enable = true;
enableDirenv = true;
};
};
programs = {
vesktop.enable = true;
btop.enable = true;
mpv.enable = true;
schizofox.enable = true;
zsh = {
enable = true;
profiling = false;
extraAliases = {
cls = "clear";
cd = "z";
};
};
git = {
enable = true;
userName = "LarsZauberer";
userEmail = "wasser.ian@gmail.com";
defaultBranch = "main";
};
};
services = {
pipewire.enable = true;
};
themes = {
cursor = {
enable = false;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
};
gtk = {
enable = false;
package = pkgs.catppuccin-gtk;
name = "Catppuccin-Mocha-Standard-Green-Dark";
variant = "mocha";
accentColour = "green";
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders;
};
};
qt = {
enable = false;
package = pkgs.catppuccin-kde;
name = "Catppuccin-Mocha-Dark";
variant = "mocha";
accentColour = "green";
};
};
};
console.keyMap = "sg";
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,8 @@
_: {
imports = [
./configuration.nix
./programs.nix
./hardware-configuration.nix
./profile.nix
];
}

View file

@ -0,0 +1,38 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/bca69c91-6f66-4b21-b90e-15b4bc21a405";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8683-FD07";
fsType = "vfat";
};
swapDevices = [ ];
# 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
# 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`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp1s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,9 @@
_: {
imports = [
../../options/boot/grub-boot.nix
../../options/desktop/fonts.nix
../../options/common/networking.nix
../../options/common/pin-registry.nix
../../options/common/preserve-system.nix
];
}

View file

@ -0,0 +1,50 @@
{ config, inputs, pkgs, ... }:
let
username = config.myOptions.other.system.username;
in {
home-manager.users.${username} = {
home.packages = let
fenix = inputs.fenix.packages.${pkgs.system};
in with pkgs; [
neofetch
git
trash-cli
element-desktop
steam
libreoffice-fresh
ventoy-full
lazygit
# obsidian
neofetch
zip
vlc
zathura
alacritty
unzip
gcc
bibata-cursors
networkmanagerapplet
xclip
pamixer
pcmanfm
ffmpeg_6-full
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
polkit
fastfetch
alsa-utils
gdb
tree
smartmontools
python3
rustdesk
neovim
];
};
}

View file

@ -46,9 +46,9 @@ in {
push.autoSetupRemote = true; push.autoSetupRemote = true;
commit = { commit = {
verbose = true; verbose = true;
gpgsign = true; # gpgsign = true;
}; };
gpg.format = "ssh"; # gpg.format = "ssh";
# user.signingkey = "key::${cfg.signingKey}"; # user.signingkey = "key::${cfg.signingKey}";
merge.conflictstyle = "zdiff3"; merge.conflictstyle = "zdiff3";
interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only"; interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only";

View file

@ -41,7 +41,7 @@ in {
cd = "z"; cd = "z";
nv = "nvim"; nv = "nvim";
#TODO fix hardcoding of git repo path and profile name #TODO fix hardcoding of git repo path and profile name
update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"$HOME/Git/nichts#${username}\" --log-format internal-json |& nom --json"; update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"$HOME/nichts#${config.myOptions.other.system.hostname}\" --log-format internal-json |& nom --json";
} // cfg.extraAliases; } // cfg.extraAliases;
initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof"; initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof";