mirror of
https://github.com/davegallant/nix-config
synced 2025-08-08 01:42:28 +00:00
Cleanup code
This commit is contained in:
@@ -1,17 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
system.stateVersion = "unstable";
|
system.stateVersion = "unstable";
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
|
|
||||||
# Automatically optimize the Nix store.
|
|
||||||
nix.autoOptimiseStore = true;
|
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.extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
nix.package = pkgs.nixUnstable;
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
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 = {
|
users.users.dave = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "libvirtd" ];
|
extraGroups = [ "wheel" "libvirtd" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
keyMap = "us";
|
keyMap = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "America/Toronto";
|
time.timeZone = "America/Toronto";
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
# Enable 32bit for steam
|
# Enable 32bit for steam
|
||||||
|
@@ -191,7 +191,7 @@ in
|
|||||||
usbutils
|
usbutils
|
||||||
virtmanager
|
virtmanager
|
||||||
vlc
|
vlc
|
||||||
# Unsupported or broken on darwin:
|
# Unsupported / broken on darwin:
|
||||||
aws-sam-cli
|
aws-sam-cli
|
||||||
bitwarden
|
bitwarden
|
||||||
brave
|
brave
|
||||||
@@ -211,11 +211,10 @@ in
|
|||||||
teams
|
teams
|
||||||
wireshark-qt
|
wireshark-qt
|
||||||
zoom-us
|
zoom-us
|
||||||
netdata # TODO: Enable launchd support with nix-darwin
|
netdata
|
||||||
]);
|
]);
|
||||||
in
|
in
|
||||||
common;
|
common;
|
||||||
|
|
||||||
# Install GnuPG agent.
|
|
||||||
programs.gnupg.agent.enable = true;
|
programs.gnupg.agent.enable = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user