Move home/common things into respective section/default expressions

This commit is contained in:
Evie Litherland-Smith 2023-06-09 10:15:24 +01:00
parent 729186efc9
commit 6a544fb7d4
9 changed files with 34 additions and 55 deletions

View file

@ -1,6 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./home
./common.nix ./common.nix
./hardware/audio.nix ./hardware/audio.nix
./locales/en_GB.nix ./locales/en_GB.nix

View file

@ -1,6 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./home
./common.nix ./common.nix
./hardware/audio.nix ./hardware/audio.nix
./hardware/bluetooth.nix ./hardware/bluetooth.nix

View file

@ -1,4 +1,11 @@
{lib, ...}: { {
pkgs,
lib,
...
}: let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in {
imports = [(import "${home-manager}/nixos")];
nix = { nix = {
settings.experimental-features = ["nix-command" "flakes"]; settings.experimental-features = ["nix-command" "flakes"];
gc = { gc = {
@ -13,9 +20,16 @@
}; };
system.autoUpgrade.enable = lib.mkDefault false; system.autoUpgrade.enable = lib.mkDefault false;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.root.shell = pkgs.zsh;
home-manager = { home-manager = {
useUserPackages = false; useUserPackages = false;
useGlobalPkgs = true; useGlobalPkgs = true;
users.root = {
imports = [./home/env/readline.nix ./home/env/starship.nix ./home/env/zsh.nix];
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "22.11";
};
}; };
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;

View file

@ -1,10 +0,0 @@
{pkgs, ...}: {
home.packages = with pkgs; [
zip
unzip
neofetch
distrobox
libreoffice-fresh
otpclient
];
}

View file

@ -1,12 +1 @@
{pkgs, ...}: let {...}: {imports = [./env ./gui ./tui];}
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in {
imports = [(import "${home-manager}/nixos")];
users.users.root.shell = pkgs.zsh;
home-manager.users.root = {
imports = [./env/readline.nix ./env/starship.nix ./env/zsh.nix];
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "22.11";
};
}

11
home/env/default.nix vendored
View file

@ -9,5 +9,14 @@
./starship.nix ./starship.nix
./zsh.nix ./zsh.nix
]; ];
home.packages = with pkgs; [dig file gnumake silver-searcher]; home.packages = with pkgs; [
dig
file
gnumake
zip
unzip
neofetch
silver-searcher
distrobox
];
} }

View file

@ -1 +1,4 @@
{...}: {imports = [./chromium.nix ./wezterm.nix];} {pkgs, ...}: {
imports = [./chromium.nix ./wezterm.nix];
home.packages = with pkgs; [libreoffice-fresh otpclient];
}

View file

@ -1,16 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [./default.nix ./git/personal.nix ./ssh/personal.nix];
./common.nix home.packages = with pkgs; [signal-desktop discord element-desktop qbittorrent];
./env
./gui
./tui
./git/personal.nix
./ssh/personal.nix
];
home.packages = with pkgs; [
signal-desktop
discord
element-desktop
qbittorrent
];
} }

View file

@ -1,16 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [./default.nix ./git/work.nix ./ssh/work.nix];
./common.nix home.packages = with pkgs; [nomachine-client teams zoom-us];
./env
./gui
./gui/vscode.nix
./tui
./git/work.nix
./ssh/work.nix
];
home.packages = with pkgs; [
nomachine-client
teams
zoom-us
];
} }