fix config error, fix update script, add flake check,

This commit is contained in:
2025-05-30 11:37:38 +02:00
parent cea729933d
commit db9e5a37cf
3 changed files with 9 additions and 6 deletions

View File

@ -1,8 +1,8 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running 'nixos-help').
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
@ -96,7 +96,7 @@
services.printing.enable = true; services.printing.enable = true;
# Enable sound with pipewire. # Enable sound with pipewire.
hardware.pulseaudio.enable = false; services.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -114,7 +114,7 @@
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with 'passwd'.
users.users.schulze = { users.users.schulze = {
isNormalUser = true; isNormalUser = true;
description = "Felix Schulze"; description = "Felix Schulze";
@ -259,7 +259,7 @@
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# First, run a check to see if the flake is valid
nix flake check
# Rebuild the system # Rebuild the system
sudo nixos-rebuild switch --flake ./#default sudo nixos-rebuild switch --flake ./#default

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Update the system # Update the system
sudo nix flake update ./ sudo nix flake update
# Rebuild the system # Rebuild the system
./rebuild-nix-system.sh ./rebuild-nix-system.sh