house cleaning and defaulted to zsh shell for myself

This commit is contained in:
Steven Carpenter 2023-02-12 16:54:09 -05:00
parent fccb78d1ff
commit ce24c83fbb
4 changed files with 65 additions and 47 deletions

View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
tailscale
firefox
vscodium-fhs
alacritty
starship
];
programs = {
zsh.enable = lib.mkDefault true;
};
}

View file

@ -1,5 +1,10 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
# Gnome extensions
environment.systemPackages = with pkgs; [
gnomeExtensions.dock-from-dash
gnomeExtensions.pop-shell
];
services = { services = {
gnome = { gnome = {
core-utilities.enable = false; core-utilities.enable = false;
@ -11,9 +16,13 @@
layout = "us"; layout = "us";
xkbVariant = ""; xkbVariant = "";
displayManager = { displayManager = {
gdm.enable = true; gdm = {
gdm.wayland = true; enable = true;
# defaultSession = lib.mkDefault "gnome"; wayland = true;
};
enable = true;
wayland = true;
defaultSession = lib.mkDefault "gnome";
}; };
desktopManager = { desktopManager = {
xterm.enable = lib.mkForce false; xterm.enable = lib.mkForce false;
@ -28,4 +37,4 @@
xdg.portal = { enable = lib.mkDefault true; }; xdg.portal = { enable = lib.mkDefault true; };
} }

View file

@ -1,6 +1,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.speccon18 = { users.users.speccon18 = {
shell = pkgs.zsh;
isNormalUser = true; isNormalUser = true;
initialHashedPassword = "$6$pJB0TDUj8IS8hQNJ$GfENlHg89lsUjRiSaePWJeqX1pevTTZOuEw5KgcVEpyPw9lyiAifz5ZiuOQnYxUAMhAiCmF/pCjaWSy6m5sWM/"; initialHashedPassword = "$6$pJB0TDUj8IS8hQNJ$GfENlHg89lsUjRiSaePWJeqX1pevTTZOuEw5KgcVEpyPw9lyiAifz5ZiuOQnYxUAMhAiCmF/pCjaWSy6m5sWM/";
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [

View file

@ -2,48 +2,44 @@
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
../.modules/services/docker.nix ../.modules/services/docker.nix
../.modules/users/speccon18.nix ../.modules/users/speccon18.nix
../.modules/services/openssh.nix ../.modules/services/openssh.nix
../.modules/features/desktop/environments/gnome.nix ../.modules/features/desktop/environments/gnome.nix
]; ../.modules/features/desktop/applications/speccon18.nix
#TODO: MOVE TO MODULE LATER ];
nixpkgs.config.allowUnfree = true; # Allow non opensource software to be installed
nix = { nixpkgs.config.allowUnfree = true;
# nix flakes
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4 nix = {
extraOptions = '' ## NIX FLAKES ##
experimental-features = nix-command flakes package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
''; # enable flakes
#auto maintainence extraOptions = ''experimental-features = nix-command flakes'';
settings.auto-optimise-store = lib.mkDefault true; # auto maintainence
gc = { settings.auto-optimise-store = lib.mkDefault true;
automatic = true; # prevent tampering
dates = "weekly"; readOnlyStore = true;
options = "--delete-older-than 7d"; # garbage collections
}; gc = {
# prevent tampering automatic = true;
readOnlyStore = true; dates = "weekly";
options = "--delete-older-than 7d";
}; };
# base packages };
environment.systemPackages = with pkgs; [ # base packages
htop environment.systemPackages = with pkgs; [
bat htop
exa bat
zsh exa
vim zsh
micro vim
tailscale micro
firefox direnv
vscodium-fhs uutils-coreutils
alacritty ];
starship
# Gnome Extensions
gnomeExtensions.dock-from-dash
gnomeExtensions.pop-shell
];
networking = { networking = {
firewall.checkReversePath = "loose"; firewall.checkReversePath = "loose";
@ -65,8 +61,7 @@
system.stateVersion = "22.11"; system.stateVersion = "22.11";
### testing ### ### testing ###
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
[ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
} }