restructure home-manager file layout to reduce clutter

This commit is contained in:
Evie Litherland-Smith 2023-03-29 13:43:02 +01:00
parent ab7b4d9882
commit 96169dde62
18 changed files with 31 additions and 29 deletions

View file

@ -2,10 +2,9 @@
{ {
imports = [ imports = [
./common/common.nix ./common.nix
./common/en_GB.nix ./locales/en_GB.nix
./common/plasma.nix ./desktop/plasma.nix
./common/desktop.nix
]; ];
networking.hostName = "H0615"; # Define your hostname. networking.hostName = "H0615"; # Define your hostname.
@ -22,7 +21,7 @@
services.xserver.displayManager.autoLogin.user = "elitherl"; services.xserver.displayManager.autoLogin.user = "elitherl";
# Set up home manager for user # Set up home manager for user
home-manager.users.elitherl = import ./home-H0615-elitherl.nix; home-manager.users.elitherl = import ./home-manager/H0615-elitherl.nix;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions

View file

@ -1,5 +1,8 @@
{config, pkgs, ...}: { config, pkgs, ... }:
{ {
imports = [
./common.nix
];
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;

View file

@ -1,10 +1,10 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
./home/common.nix ./common.nix
./home/gui.nix ./packages/gui.nix
./home/dev.nix ./packages/dev.nix
./home/nomachine.nix ./packages/nomachine.nix
./home/python310.nix ./packages/python310.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.

View file

@ -1,17 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [
./neovim.nix
];
home.packages = with pkgs; [ home.packages = with pkgs; [
git
gcc
gnumake gnumake
gcc
direnv direnv
]; ];
programs.git.enable = true;
programs.lazygit = { programs.lazygit = {
enable = true; enable = true;
settings = import ./config/lazygit.nix; settings = import ./config/lazygit.nix;

View file

@ -1,4 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }:
{
home.packages = with pkgs; [ home.packages = with pkgs; [
wezterm wezterm
firefox firefox

View file

@ -1,6 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [
./dev.nix
];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;

View file

@ -1,11 +1,11 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
./home/common.nix ./common.nix
./home/gui.nix ./packages/gui.nix
./home/gaming.nix ./packages/gaming.nix
./home/messaging.nix ./packages/messaging.nix
./home/neovim.nix ./packages/neovim.nix
./home/nomachine.nix ./packages/nomachine.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.

View file

@ -2,10 +2,9 @@
{ {
imports = [ imports = [
./common/common.nix ./common.nix
./common/en_GB.nix ./locales/en_GB.nix
./common/plasma.nix ./desktop/plasma.nix
./common/desktop.nix
]; ];
networking.hostName = "Vanguard"; # Define your hostname. networking.hostName = "Vanguard"; # Define your hostname.
@ -22,7 +21,7 @@
services.xserver.displayManager.autoLogin.user = "xenia"; services.xserver.displayManager.autoLogin.user = "xenia";
# Set up home manager for user # Set up home manager for user
home-manager.users.xenia = import ./home-vanguard-xenia.nix; home-manager.users.xenia = import ./home-manager/vanguard-xenia.nix;
# For Steam support # For Steam support
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;