Working configuration

This commit is contained in:
Bart van der Braak 2024-10-16 23:51:31 +02:00
parent bb79b9a2c6
commit 18debedc0f
4 changed files with 48 additions and 11 deletions

View file

@ -1,3 +1,3 @@
alias ll='ls -la'
alias lt='ls --human-readable --size -1 -S --classify'
alias nrebuild="nixos-rebuild --flake ~/ --override-input nixpkgs ~/nixpkgs --use-remote-sudo switch"
alias nrebuild="nixos-rebuild -I /etc/nixos/configuration.nix --flake /etc/nixos/flake.nix --use-remote-sudo switch"

View file

@ -1,3 +0,0 @@
inputs = {
zen-browser.url = "github:MarceColl/zen-browser-flake";
}

View file

@ -2,7 +2,7 @@
{
imports = [
/etc/nixos/hardware-configuration.nix
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
@ -29,6 +29,7 @@
services.xserver.enable = false;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
services.xserver.xkb = {
@ -48,7 +49,9 @@
pulse.enable = true;
};
services.xserver.libinput.enable = true;
services.libinput.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
users.users.bart = {
isNormalUser = true;
@ -56,20 +59,19 @@
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
codium
vscodium-fhs
git
thunderbird
fastfetch
];
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
inputs.zen-browser.packages."${system}".specific
nvim
vim
wget
];
environment.variables.EDITOR = "vim";
system.stateVersion = "24.05"; # Did you read the comment?
system.stateVersion = "24.05";
}

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" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c7cf28c3-5744-45cc-8a81-456d24e44b7a";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/CEF6-7DAA";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
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.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}