added stuff

This commit is contained in:
Charlie Root 2024-04-09 23:11:33 +02:00
commit 9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions

93
alt/hosts/common/default.nix Executable file
View file

@ -0,0 +1,93 @@
{ inputs, outputs, profile-config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
imports = [
#profile-config.overlays
inputs.home-manager.nixosModules.home-manager
./packages.nix
];
services.locate = {
enable = true;
interval = "daily";
package = pkgs.plocate;
localuser = null;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users = builtins.listToAttrs (builtins.map(
u-conf: {
inherit inputs;
name = u-conf.name;
value = import u-conf.config { inherit pkgs inputs outputs; user = u-conf.name; };
}
)profile-config.user-configs);
users.users = builtins.listToAttrs (builtins.map(
u-conf: {
name = u-conf.name;
value = {
initialPassword = "${u-conf.name}";
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "input"];
};
}
)profile-config.user-configs);
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
time.timeZone = "Europe/Zurich";
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "de";
# Remove unnecessary packages
environment.gnome.excludePackages =
(with pkgs; [
gnome-photos
gnome-tour
gedit
]) ++
(with pkgs.gnome; [
epiphany
geary
totem
tali
iagno
hitori
atomix
]);
services.xserver.excludePackages = [ pkgs.xterm ];
documentation.nixos.enable = false;
# Set the keyboard layout to german
services.xserver.xkb.layout= "de";
# Eable CUPS
services.printing.enable = true;
# Sound settings
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
wireplumber.enable = true;
alsa.support32Bit = true;
};
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
system.stateVersion = "23.11";
}

23
alt/hosts/common/packages.nix Executable file
View file

@ -0,0 +1,23 @@
{ inputs, outputs, profile-config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vim
neovim
eza
zsh
git
zip
unzip
neofetch
fastfetch
wget
zoxide
python3
gcc
htop
networkmanager
gnomeExtensions.appindicator
uwufetch
];
}

13
alt/hosts/laptop/default.nix Executable file
View file

@ -0,0 +1,13 @@
{ inputs, outputs, pks, profile-config, ... }:
{
imports = [
./hardware-configuration.nix
../common
./packages.nix
];
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
security.polkit.enable = true;
}

View file

@ -0,0 +1,39 @@
# 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 = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b29322ae-b475-4241-85d5-16b69d3cbdc0";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-d12a57e8-f071-485c-ab1c-e8f7a7897dfb".device = "/dev/disk/by-uuid/d12a57e8-f071-485c-ab1c-e8f7a7897dfb";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/33F4-58C3";
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.wlp59s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

28
alt/hosts/laptop/packages.nix Executable file
View file

@ -0,0 +1,28 @@
{ inputs, outputs, pkgs, profile-config, ... }:
{
environment.systemPackages = with pkgs; [
jetbrains.idea-community
ani-cli
okular
texliveFull
signal-desktop
nextcloud-client
vlc
strawberry
telegram-desktop
thunderbird
betterbird
vesktop
zsh
zoxide
eza
mpv
librewolf
keepassxc
feh
libreoffice
openjdk
gnome.gnome-tweaks
];
}

22
alt/hosts/xfce/default.nix Executable file
View file

@ -0,0 +1,22 @@
{ config, pkgs, callPackage, ... }:
{
imports = [
./hardware-configuration.nix
./packages.nix
../common
];
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
displayManager.defaultSession = "xfce";
windowManager.i3.enable = true;
};
...
}

View file

@ -0,0 +1,39 @@
# 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 = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b29322ae-b475-4241-85d5-16b69d3cbdc0";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-d12a57e8-f071-485c-ab1c-e8f7a7897dfb".device = "/dev/disk/by-uuid/d12a57e8-f071-485c-ab1c-e8f7a7897dfb";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/33F4-58C3";
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.wlp59s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

27
alt/hosts/xfce/packages.nix Executable file
View file

@ -0,0 +1,27 @@
{ inputs, outputs, pkgs, profile-config, ... }:
{
environment.systemPackages = with pkgs; [
jetbrains.idea-community
ani-cli
okular
texliveFull
signal-desktop
nextcloud-client
vlc
strawberry
telegram-desktop
betterbird
vesktop
zsh
zoxide
eza
mpv
librewolf
keepassxc
feh
libreoffice
openjdk
];
}