...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 {
|
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,34 +81,29 @@
|
||||||
|
|
||||||
# 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 = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
users = {
|
users = {
|
||||||
"wolcen" = import ./home.nix;
|
"wolcen" = import ./home.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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;
|
||||||
|
|
||||||
|
@ -139,7 +135,7 @@
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# RX 6700 XT setup
|
# RX 6700 XT setup
|
||||||
hardware.graphics.extraPackages = [
|
hardware.graphics.extraPackages = [
|
||||||
pkgs.rocmPackages.clr.icd
|
pkgs.rocmPackages.clr.icd
|
||||||
pkgs.amdvlk
|
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