mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Cleanup
This commit is contained in:
parent
86a3de9311
commit
652b8599f8
11 changed files with 38 additions and 68 deletions
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
# boot.loader.systemd-boot.enable = true;
|
||||
# boot.plymouth.enable = true;
|
||||
# boot.initrd.systemd.enable = true;
|
||||
# boot.kernelParams = [ "quiet" ];
|
||||
boot.loader = {
|
||||
boot.loader = lib.mkIf config.mods.xorg.enable {
|
||||
timeout = 0;
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
|
|
|
|||
|
|
@ -4,5 +4,6 @@
|
|||
./network.nix
|
||||
./user.nix
|
||||
./nix.nix
|
||||
./home.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
21
modules/nixos/core/home.nix
Normal file
21
modules/nixos/core/home.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, lib, config, inputs, system, ... }: let
|
||||
cfg = config.mods;
|
||||
|
||||
in {
|
||||
options.mods.home.file = lib.mkOption {
|
||||
description = "home-manager configuration file";
|
||||
};
|
||||
|
||||
config = {
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit system pkgs inputs; };
|
||||
users."${cfg.user.name}" = {
|
||||
imports = [
|
||||
cfg.home.file
|
||||
inputs.self.outputs.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
backupFileExtension = "bak";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
networking.hostName = config.mods.user.name;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
config = {
|
||||
users.users.${config.mods.user.name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" ];
|
||||
extraGroups = [ "wheel" ];
|
||||
initialPassword = "changeme";
|
||||
shell = if config.programs.zsh.enable
|
||||
then pkgs.zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue