...to be honest, I'm not quite sure this makes ANY sense

This commit is contained in:
Chris Thompson 2024-11-10 20:02:55 -05:00
parent 3146ba0781
commit d655642142
6 changed files with 53 additions and 46 deletions

View file

@ -14,7 +14,8 @@
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/supercell/configuration.nix
./hosts/default/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};

View file

@ -9,6 +9,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
./main-user.nix
];
# Add flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
@ -80,22 +81,15 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
# Pull defaults from main-user:
main-user.enable = true;
main-user.userName = "wolcen";
# And system-specific settings:
users.users.wolcen = {
isNormalUser = true;
description = "Chris Thompson";
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEdxdKYrlwOolJpYxvWu6gW/60pzT6aKN6JHhnTSBFqN wolcen@typhoon" ];
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
thunderbird
keepassxc
neofetch
z-lua
logseq # REQUIRES TEMPORARY INSECURE ELECTRON
signal-desktop
];
};
home-manager = {
@ -107,7 +101,9 @@
# Install firefox.
programs.firefox.enable = true;
# Add docker!
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs"; # Only when using BTRFS! (wolcen approved!)
# Allow unfree packages
nixpkgs.config.allowUnfree = true;

View file

@ -0,0 +1,34 @@
{ lib, config, pkgs, ... }:
let
cfg = config.main-user;
in
{
options.main-user = {
enable = lib.mkEnableOption "enable main-user module";
userName = lib.mkOption {
default = "submin";
description = ''
username
'';
};
};
config = lib.mkIf cfg.enable {
users.users.${cfg.userName} = {
isNormalUser = true;
initialPassword = "B@dC0d3MangFIX|T";
description = "Just a normal admin";
extraGroups = [ "wheel" "networkmanager" "docker" ];
packages = with pkgs; [
kdePackages.kate
thunderbird
keepassxc
macchina
z-lua
logseq # REQUIRES TEMPORARY INSECURE ELECTRON
signal-desktop
];
};
};
}

View file

@ -1,24 +0,0 @@
{ lib, config, pkgs, ... }:
let
cfg = config.main-user;
in
{
options.main-user = {
enable = lib.mkEnableOption "enable main-user module";
userName = lib.mkOption {
default = "submin";
description = ''
username
'';
}
}
config = lib.mkIf cfg.enable {
users.users.${cfg.userName} = {
isNormalUser = true;
initialPassword = "B@dC0d3MangFIX|T";
description = "Just a normal admin";
};
};
};