issue with hm fixed
This commit is contained in:
parent
3e7b1bab94
commit
318f03df08
8 changed files with 61 additions and 45 deletions
|
|
@ -12,8 +12,7 @@
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = [
|
home.packages = with pkgs; [
|
||||||
alejandra # formatter
|
alejandra
|
||||||
fd-find
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
# dynamic linking
|
# dynamic linking
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = with pkgs; [
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,18 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# flakes
|
# flakes
|
||||||
nix.settings.experimental-features = [
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
|
warn-dirty = false;
|
||||||
|
};
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than +7";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
displayManager.gdm = {
|
displayManager.gdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoSuspend = false;
|
autoSuspend = false;
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
28
hosts/common/users/luna/default.nix
Normal file
28
hosts/common/users/luna/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.luna = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "luna";
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
packages = with pkgs; [
|
||||||
|
# thunderbird
|
||||||
|
gnome-software
|
||||||
|
git
|
||||||
|
neovim
|
||||||
|
rustup
|
||||||
|
vscode.fhs
|
||||||
|
nix-inspect
|
||||||
|
protonvpn-gui
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.luna = import ../../../../home-manager/luna/${config.networking.hostName}.nix;
|
||||||
|
}
|
||||||
|
|
@ -10,13 +10,14 @@
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
||||||
../common/global
|
../common/global
|
||||||
|
../common/users/luna
|
||||||
|
|
||||||
# optional stuff
|
# optional stuff
|
||||||
../common/optional/gnome.nix
|
../common/optional/gnome.nix
|
||||||
../common/optional/pipewire.nix
|
../common/optional/pipewire.nix
|
||||||
|
|
||||||
|
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
@ -45,28 +46,6 @@
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 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’.
|
|
||||||
users.users.luna = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "luna";
|
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
|
||||||
packages = with pkgs; [
|
|
||||||
# thunderbird
|
|
||||||
gnome-software
|
|
||||||
git
|
|
||||||
neovim
|
|
||||||
rustup
|
|
||||||
vscode.fhs
|
|
||||||
nix-inspect
|
|
||||||
protonvpn-gui
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# flatpak
|
# flatpak
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue