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