added mars, vali's desktop

This commit is contained in:
vali 2024-04-12 14:41:59 +02:00
commit 3215d522dc
7 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1,72 @@
{ config, inputs, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
time.timeZone = "Europe/Zurich";
console.keyMap = "de";
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;
programs.kdeconnect.enable = true;
myOptions = {
other = {
system = {
hostname = "mars";
username = "vali";
gitPath = "/home/vali/Git/nichts";
};
home-manager = {
enable = true;
enableDirenv = true;
};
};
programs = {
vesktop.enable = true;
btop.enable = true;
mpv.enable = true;
i3.enable = true;
schizofox.enable = true;
obs.enable = true;
#neovim.enable = true;
#git = {
# enable = true;
# userName = "vali";
# userEmail = "valentin@kaas.cc";
# defaultBranch = "main";
#};
starship.enable = true;
zsh = {
enable = true;
profiling = false;
};
};
services = {
pipewire.enable = true;
};
themes = {
cursor = {
enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
};
gtk = {
enable = true;
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 = true;
package = pkgs.catppuccin-kde;
name = "Catppuccin-Mocha-Dark";
variant = "mocha";
accentColour = "green";
};
};
};
system.stateVersion = "23.11";
}

View file

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

View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0423508a-6906-4872-baeb-2b1e6bd017a4";
fsType = "ext4";
options = [ "noatime" "nodiratime" "discard" ];
};
boot.initrd.luks.devices."luks-c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f".device = "/dev/disk/by-uuid/c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D299-5174";
fsType = "vfat";
};
swapDevices =
[
# { device = "/dev/disk/by-uuid/bc68b3b5-1b58-4d8c-be8d-b06bbc4b6da7"; }
];
# 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.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

21
hosts/vali/mars/i3.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, lib, config, callPackage, ... }:
with lib; let
cfg = config.myOptions.programs.i3;
in {
options.myOptions.programs.i3.enable = mkEnableOption "i3";
config = mkIf cfg.enable {
services.xserver = {
enable = true;
xkb.layout = "de";
windowManager = {
bspwm.enable = true;
i3.enable = true;
};
displayManager = {
gdm.enable = true;
defaultSession = "none+i3";
};
};
};
}

View file

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

View file

@ -0,0 +1,68 @@
{ 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; [
pfetch
git
keepassxc
eza ripgrep
signal-desktop-beta
element-desktop
steam
tor-browser-bundle-bin
betterbird
telegram-desktop
libreoffice-fresh
qbittorrent
ventoy-full
lazygit
neofetch
zip
vlc
zathura
alacritty
scc
texliveFull
st
unzip
gcc
trash-cli
bibata-cursors
networkmanagerapplet
xclip
pamixer
dig
pcmanfm
ffmpeg_6-full
yt-dlp
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
polkit
asciinema
fastfetch
alsa-utils
imagemagick
pavucontrol
gdb
tree
smartmontools
krita
python3
rustdesk
httpie
sherlock
strawberry
neovim
];
};
}