move to backup

This commit is contained in:
Dennis 2026-03-03 10:46:08 +01:00
parent 294dc66380
commit a0e3d792a9
182 changed files with 156 additions and 103 deletions

View file

@ -1,84 +0,0 @@
{
lib,
inputs,
outputs,
pkgs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
outputs.nixosModules.base
outputs.nixosModules.unix
outputs.nixosModules.nvidia
outputs.nixosModules.bluetooth
outputs.nixosModules.printing
outputs.nixosModules.tablet
outputs.nixosModules.audio
outputs.nixosModules.ly
outputs.nixosModules.niriSystem
outputs.nixosModules.keyd
outputs.nixosModules.steam
];
# Device specific overlays
# Overlays for all devices are defined
# in flake.nix
nixpkgs.overlays = [
(final: prev: {
python3Packages = prev.python3Packages // {
python-dbusmock =
inputs.nixpkgs-backport-fix.legacyPackages.x86_64-linux.python3Packages.python-dbusmock;
};
})
];
# General settings
networking.hostName = "dnsc-machine";
time.timeZone = "Europe/Berlin";
services.xserver.xkb.layout = "eu";
users.users.dennis = {
isNormalUser = true;
description = "dennis";
extraGroups = [
"networkmanager"
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work"
];
};
# Home Manager
home-manager = {
extraSpecialArgs = { inherit inputs outputs; };
backupFileExtension = "backup";
users = {
dennis = {
imports = [
inputs.zen-browser.homeModules.beta
../../home/linux.nix
];
};
};
};
# System Packages
environment.systemPackages = lib.mkAfter (with pkgs; [ ]);
# Enable some services that do not need configuration
services.openssh.enable = true;
services.udisks2.enable = true;
services.tuned.enable = true;
services.upower.enable = true;
services.udev.packages = with pkgs; [
vial
];
system.stateVersion = "25.05";
}

View file

@ -1,41 +0,0 @@
# 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" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/30277f94-8b7b-4e91-8438-6815170edfdd";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4DC9-7AB7";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/9b7564e7-2deb-4432-a4fc-d18d21ef2d11"; }
];
# 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.enp42s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp45s0f3u3u4.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}