...to be honest, I'm not quite sure this makes ANY sense
This commit is contained in:
parent
3146ba0781
commit
d655642142
6 changed files with 53 additions and 46 deletions
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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,34 +81,29 @@
|
|||
|
||||
# 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" ];
|
||||
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 = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users = {
|
||||
"wolcen" = import ./home.nix;
|
||||
};
|
||||
};
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users = {
|
||||
"wolcen" = import ./home.nix;
|
||||
};
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
# 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;
|
||||
|
||||
|
@ -139,7 +135,7 @@
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# RX 6700 XT setup
|
||||
# RX 6700 XT setup
|
||||
hardware.graphics.extraPackages = [
|
||||
pkgs.rocmPackages.clr.icd
|
||||
pkgs.amdvlk
|
34
hosts/default/main-user.nix
Normal file
34
hosts/default/main-user.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue