Move home/common things into respective section/default expressions
This commit is contained in:
parent
729186efc9
commit
6a544fb7d4
|
@ -1,6 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./home
|
||||
./common.nix
|
||||
./hardware/audio.nix
|
||||
./locales/en_GB.nix
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./home
|
||||
./common.nix
|
||||
./hardware/audio.nix
|
||||
./hardware/bluetooth.nix
|
||||
|
|
16
common.nix
16
common.nix
|
@ -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 = {
|
||||
settings.experimental-features = ["nix-command" "flakes"];
|
||||
gc = {
|
||||
|
@ -13,9 +20,16 @@
|
|||
};
|
||||
system.autoUpgrade.enable = lib.mkDefault false;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
users.users.root.shell = pkgs.zsh;
|
||||
home-manager = {
|
||||
useUserPackages = false;
|
||||
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;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
zip
|
||||
unzip
|
||||
neofetch
|
||||
distrobox
|
||||
libreoffice-fresh
|
||||
otpclient
|
||||
];
|
||||
}
|
|
@ -1,12 +1 @@
|
|||
{pkgs, ...}: let
|
||||
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";
|
||||
};
|
||||
}
|
||||
{...}: {imports = [./env ./gui ./tui];}
|
||||
|
|
11
home/env/default.nix
vendored
11
home/env/default.nix
vendored
|
@ -9,5 +9,14 @@
|
|||
./starship.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
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
{...}: {imports = [./chromium.nix ./wezterm.nix];}
|
||||
{pkgs, ...}: {
|
||||
imports = [./chromium.nix ./wezterm.nix];
|
||||
home.packages = with pkgs; [libreoffice-fresh otpclient];
|
||||
}
|
||||
|
|
|
@ -1,16 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./common.nix
|
||||
./env
|
||||
./gui
|
||||
./tui
|
||||
./git/personal.nix
|
||||
./ssh/personal.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
signal-desktop
|
||||
discord
|
||||
element-desktop
|
||||
qbittorrent
|
||||
];
|
||||
imports = [./default.nix ./git/personal.nix ./ssh/personal.nix];
|
||||
home.packages = with pkgs; [signal-desktop discord element-desktop qbittorrent];
|
||||
}
|
||||
|
|
|
@ -1,16 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./common.nix
|
||||
./env
|
||||
./gui
|
||||
./gui/vscode.nix
|
||||
./tui
|
||||
./git/work.nix
|
||||
./ssh/work.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
nomachine-client
|
||||
teams
|
||||
zoom-us
|
||||
];
|
||||
imports = [./default.nix ./git/work.nix ./ssh/work.nix];
|
||||
home.packages = with pkgs; [nomachine-client teams zoom-us];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue