diff --git a/configuration.nix b/configuration.nix index 6441f04..ba18f58 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,8 +1,8 @@ # Edit this configuration file to define what should be installed on # 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 = [ # Include the results of the hardware scan. @@ -96,7 +96,7 @@ services.printing.enable = true; # Enable sound with pipewire. - hardware.pulseaudio.enable = false; + services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; @@ -114,7 +114,7 @@ # Enable touchpad support (enabled default in most desktopManager). # 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 = { isNormalUser = true; description = "Felix Schulze"; @@ -259,7 +259,7 @@ # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s 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. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). diff --git a/rebuild-nix-system.sh b/rebuild-nix-system.sh index c6ee2ba..5a5bd98 100755 --- a/rebuild-nix-system.sh +++ b/rebuild-nix-system.sh @@ -1,5 +1,8 @@ #!/bin/bash +# First, run a check to see if the flake is valid +nix flake check + # Rebuild the system sudo nixos-rebuild switch --flake ./#default diff --git a/update-nix-system.sh b/update-nix-system.sh index 8117b73..23e228b 100755 --- a/update-nix-system.sh +++ b/update-nix-system.sh @@ -1,7 +1,7 @@ #!/bin/bash # Update the system -sudo nix flake update ./ +sudo nix flake update # Rebuild the system ./rebuild-nix-system.sh