Different host configuration

This commit is contained in:
get 2024-04-12 07:09:49 +02:00
commit 6af19b3af4
13 changed files with 153 additions and 14 deletions

View file

@ -0,0 +1,11 @@
{ config, inputs, pkgs, ... }:
{
myOptions = {
other = {
system = {
hostname = "dyonisos";
username = "lars";
};
};
};
}

View file

@ -0,0 +1,9 @@
_: {
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
];
};
}