Cleanup code

This commit is contained in:
Dave Gallant
2021-12-02 01:16:52 -05:00
parent e802168d14
commit 8623e78a8e
2 changed files with 7 additions and 20 deletions

View File

@@ -1,17 +1,16 @@
{ pkgs, ... }:
{
boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1;
boot.kernelPackages = pkgs.linuxPackages_hardened;
boot.supportedFilesystems = [ "ntfs" ];
system.stateVersion = "unstable";
system.autoUpgrade.enable = true;
# Automatically optimize the Nix store.
nix.autoOptimiseStore = true;
boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1;
# Enable Nix flake support.
nix.package = pkgs.nixUnstable;
nix.extraOptions = "experimental-features = nix-command flakes";
nix.package = pkgs.nixUnstable;
nixpkgs.config = {
allowUnfree = true;
@@ -20,31 +19,20 @@
];
};
boot.kernelPackages = pkgs.linuxPackages_hardened;
# Enable support for additional filesystems
boot.supportedFilesystems = [ "ntfs" ];
# Define a user account. Don't forget to set a password with passwd.
users.users.dave = {
isNormalUser = true;
extraGroups = [ "wheel" "libvirtd" ];
shell = pkgs.zsh;
};
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Set your time zone.
time.timeZone = "America/Toronto";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true;
# Enable 32bit for steam

View File

@@ -191,7 +191,7 @@ in
usbutils
virtmanager
vlc
# Unsupported or broken on darwin:
# Unsupported / broken on darwin:
aws-sam-cli
bitwarden
brave
@@ -211,11 +211,10 @@ in
teams
wireshark-qt
zoom-us
netdata # TODO: Enable launchd support with nix-darwin
netdata
]);
in
common;
# Install GnuPG agent.
programs.gnupg.agent.enable = true;
}