mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Clean up
This commit is contained in:
parent
673524b947
commit
9ad1975f72
33 changed files with 358 additions and 471 deletions
|
@ -1,20 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.jopejoe1.root;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.root = {
|
||||
enable = lib.mkEnableOption "Enable root user";
|
||||
};
|
||||
let cfg = config.jopejoe1.root;
|
||||
in {
|
||||
options.jopejoe1.root = { enable = lib.mkEnableOption "Enable root user"; };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.users.root = {
|
||||
initialPassword = "password";
|
||||
};
|
||||
users.users.root = { initialPassword = "password"; };
|
||||
};
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
imports = [ ./home.nix ];
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ in
|
|||
CUDA_CACHE_PATH = "${hcfg.xdg.cacheHome}/nv";
|
||||
GRADLE_USER_HOME = "${hcfg.xdg.dataHome}/gradle";
|
||||
KODI_DATA = "${hcfg.xdg.dataHome}/kodi";
|
||||
_JAVA_OPTIONS = "-Djava.util.prefs.userRoot=${hcfg.xdg.configHome}/java";
|
||||
_JAVA_OPTIONS =
|
||||
"-Djava.util.prefs.userRoot=${hcfg.xdg.configHome}/java";
|
||||
WINEPREFIX = "${hcfg.xdg.dataHome}/wine";
|
||||
};
|
||||
|
||||
|
@ -76,7 +77,8 @@ in
|
|||
historyFile = "${hcfg.xdg.stateHome}/bash/history";
|
||||
shellAliases = {
|
||||
gc = "nix store gc";
|
||||
rb = "git -C /etc/nixos pull && nix flake update /etc/nixos/ && sudo nixos-rebuild switch --impure && git -C /etc/nixos add . && git -C /etc/nixos commit -m 'Updated flake.lock' && git -C /etc/nixos push";
|
||||
rb =
|
||||
"git -C /etc/nixos pull && nix flake update /etc/nixos/ && sudo nixos-rebuild switch --impure && git -C /etc/nixos add . && git -C /etc/nixos commit -m 'Updated flake.lock' && git -C /etc/nixos push";
|
||||
};
|
||||
};
|
||||
zsh.shellAliases = hcfg.programs.bash.shellAliases;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue