Start another restructure

Move home config back into nixos, too annoying to
maintain as separate when not needed

Regoup nix expressions logically, make use of defaults and
create GUI collections to minimise code needed for common
machine definitions
This commit is contained in:
Evie Litherland-Smith 2023-04-25 14:27:28 +01:00
parent 303bcc7df9
commit 6193f366de
112 changed files with 93 additions and 89 deletions

View file

@ -1,4 +0,0 @@
{ ... }: {
imports = [ ./ukaea-elitherl.nix ];
home.stateVersion = "22.11";
}

View file

@ -1,31 +0,0 @@
{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "rot8";
version = "v0.1.5";
src = fetchFromGitHub {
owner = "efernau";
repo = pname;
rev = version;
sha256 = lib.fakeSha256;
};
cargoSha256 = lib.fakeSha256;
buildPhase = ''
cargo build --release
'';
installPhase = ''
mkdir $out/bin
mv target/release/rot8 $out/bin
'';
meta = with lib; {
description = "Automatic display rotation using built-in accelerometer";
homepage = "https://github.com/BurntSushi/ripgrep";
license = licenses.unlicense;
maintainers = [ "evie" ];
};
}

View file

@ -1,24 +0,0 @@
{ pkgs ? <nixpkgs>, ... }:
pkgs.stdenv.mkDerivation rec {
pname = "rot8";
version = "v0.1.5";
src = pkgs.fetchFromGitHub {
owner = "efernau";
repo = pname;
rev = version;
sha256 = "0000000000000000000000000000000000000000000000000000";
};
buildInputs = [ pkgs.cargo ];
buildPhase = ''
cargo build --release
'';
installPhase = ''
mkdir $out/bin
mv target/release/rot8 $out/bin
'';
}

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [ ./default.nix ];
programs.git = {
userEmail = "evie@xenia.me.uk";
};
}

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [ ./default.nix ];
programs.git = {
userEmail = "evie.litherland-smith@ukaea.uk";
};
}

View file

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
signal-desktop
element-desktop
];
}

View file

@ -1,8 +1,12 @@
{ pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
./common.nix
./home/common.nix
./locales/en_GB.nix
./desktop/plasma.nix
];
@ -16,4 +20,18 @@
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
};
home-manager.users.elitherl = { ... }: {
imports = [
./home/desktop
./home/env
./home/git/work
./home/gui/collections/work
./home/tui
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "elitherl";
home.homeDirectory = "/home/elitherl";
home.stateVersion = "22.11";
};
}

5
nixos/home/common.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
}

View file

@ -0,0 +1,2 @@
{ ... }:
{ imports = [ ./gtk.nix ]; }

View file

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./common
./wayland
./xorg
];
}

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ./xresources.nix ];
xsession.enable = true;
}

View file

@ -2,7 +2,6 @@
{
imports = [
./fonts
./git
./shell
./direnv.nix
./keychain.nix

View file

@ -1,8 +1,8 @@
{ ... }:
{
imports = [
../ssh.nix
../shell
../env/ssh.nix
../env/shell
];
programs.git = {
enable = true;

View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ../default.nix ];
programs.git.userEmail = "evie@xenia.me.uk";
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ../default.nix ];
programs.git.userEmail = "evie.litherland-smith@ukaea.uk";
}

View file

@ -0,0 +1,15 @@
{ ... }:
{
imports = [
../../browser/chromium-wayland.nix
../../dev/neovide.nix
../../documents/zotero.nix
../../gaming/steam.nix
../../messaging/discord.nix
../../messaging/element.nix
../../messaging/signal.nix
../../security
../../terminal/foot.nix
../../terminal/wezterm.nix
];
}

View file

@ -0,0 +1,14 @@
{ ... }:
{
imports = [
../../browser/chromium-wayland.nix
../../dev/neovide.nix
../../documents/libreoffice.nix
../../documents/zotero.nix
../../messaging/signal.nix
../../messaging/zoom.nix
../../remote/nomachine.nix
../../security
../../terminal/wezterm.nix
];
}

View file

@ -5,6 +5,5 @@
mesa
steam
steam-run
discord
];
}

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ discord ];
}

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ element-desktop ];
}

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ signal-desktop ];
}

Some files were not shown because too many files have changed in this diff Show more