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;

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

@ -8,24 +8,26 @@
../.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 # Allow non opensource software to be installed
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix = { nix = {
# nix flakes ## NIX FLAKES ##
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4 package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
extraOptions = '' # enable flakes
experimental-features = nix-command flakes extraOptions = ''experimental-features = nix-command flakes'';
'';
# auto maintainence # auto maintainence
settings.auto-optimise-store = lib.mkDefault true; settings.auto-optimise-store = lib.mkDefault true;
# prevent tampering
readOnlyStore = true;
# garbage collections
gc = { gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
}; };
# prevent tampering
readOnlyStore = true;
}; };
# base packages # base packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -35,14 +37,8 @@
zsh zsh
vim vim
micro micro
tailscale direnv
firefox uutils-coreutils
vscodium-fhs
alacritty
starship
# Gnome Extensions
gnomeExtensions.dock-from-dash
gnomeExtensions.pop-shell
]; ];
networking = { networking = {
@ -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" ];
} }