From 885a782fd4963f9641fec5c986bc21be0107d797 Mon Sep 17 00:00:00 2001 From: Sense T Date: Mon, 25 Sep 2023 01:11:58 +0000 Subject: [PATCH] format --- configuration.nix | 2 +- global/software-configuration.nix | 2 +- global/system-configuration.nix | 2 +- global/user-configuration.nix | 6 +----- hardware-configuration.nix | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index 2880151..c49ac1a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,5 @@ # NixOS configurations file. -{ config, pkgs, lib, ... }: { +{ system.stateVersion = "23.05"; imports = [ # Include the results of the hardware scan. diff --git a/global/software-configuration.nix b/global/software-configuration.nix index ee94218..e355f72 100644 --- a/global/software-configuration.nix +++ b/global/software-configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, pkgs-unstable, lib, ... }: +{ pkgs, pkgs-unstable, ... }: let databases = [ "k3s" diff --git a/global/system-configuration.nix b/global/system-configuration.nix index f363898..f5391d0 100644 --- a/global/system-configuration.nix +++ b/global/system-configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: { +{ time.timeZone = "Asia/Shanghai"; security.sudo.wheelNeedsPassword = true; diff --git a/global/user-configuration.nix b/global/user-configuration.nix index f5870dc..d6c97d4 100644 --- a/global/user-configuration.nix +++ b/global/user-configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ users = { mutableUsers = false; users = { @@ -7,10 +7,6 @@ description = "Login user"; hashedPassword = "$y$j9T$XMNDyrhWt/0Hml8Lp9e/91$PuqtfFbvUUjJgiEE9KNBRziWppEWbAD54j7ydmD0BY8"; - packages = with pkgs; [ - - ]; - extraGroups = [ "wheel" ]; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 9c9adcd..74d545c 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -1,7 +1,7 @@ # 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, ... }: +{ config, lib, modulesPath, ... }: { imports = [