nixos: refactor home

This commit is contained in:
Maciej Jur 2024-06-09 16:37:54 +02:00
parent b154030d21
commit a39e13373b
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
3 changed files with 29 additions and 16 deletions

View file

@ -11,6 +11,7 @@ in
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./nvidia.nix
./home.nix
];
# Use the systemd-boot EFI boot loader.
@ -82,19 +83,6 @@ in
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.kamov = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
anki
discord
spotify
firefox-devedition
unstable.neovide
];
};
# Enable unfree packages
nixpkgs.config.allowUnfree = true;
@ -130,9 +118,8 @@ in
enableSSHSupport = true;
};
};
steam = {
enable = true;
};
steam.enable = true;
fish.enable = true;
git = {
enable = true;
config = {

24
nixos/msi/home.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let
unstable = import <unstable> {};
packages = (with pkgs; [
anki
discord
firefox-devedition
krita
qbittorrent
spotify
vlc
]) ++ (with unstable; [
neovide
]);
in
{
# Define a user account. Don't forget to set a password with passwd.
users.users.kamov = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = packages;
shell = pkgs.fish;
};
}

View file

@ -79,6 +79,8 @@ return {
ensure_installed = {
-- neovim
'vimdoc', 'lua', 'query', 'fennel',
-- nix
'nix',
-- data
'json', 'xml', 'yaml', 'toml',
-- markdown