Move home configs inside home directory, add some more integrations, add chat apps and steam

This commit is contained in:
Evie Litherland-Smith 2023-03-28 19:54:01 +01:00
parent 74220266e1
commit 84d4d49666
10 changed files with 97 additions and 76 deletions

View file

@ -80,7 +80,7 @@ in
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Set up home manager for user # Set up home manager for user
home-manager.users.elitherl = import ./H0615-elitherl-home.nix; home-manager.users.elitherl = import ./home/H0615-elitherl.nix;
home-manager.useUserPackages = false; home-manager.useUserPackages = false;
home-manager.useGlobalPkgs = false; home-manager.useGlobalPkgs = false;

View file

@ -1,17 +1,15 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
./home/common.nix ./common.nix
./home/dev.nix ./dev.nix
./home/nomachine.nix ./nomachine.nix
./home/python310.nix ./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.
home.username = "elitherl"; home.username = "elitherl";
home.homeDirectory = "/home/elitherl"; home.homeDirectory = "/home/elitherl";
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
microsoft-edge microsoft-edge
bitwarden bitwarden

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
nixpkgs.config.allowUnfree = true;
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.ssh = { programs.ssh = {
enable = true; enable = true;
@ -14,12 +16,18 @@
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Evie Litherland-Smith"; userName = "Evie Litherland-Smith";
userEmail = "evie.litherland-smith@ukaea.uk"; };
programs.bash.enable = true;
programs.zsh.enable = true;
programs.fish.enable = true;
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
wezterm wezterm
zsh
starship
]; ];
} }

View file

@ -18,18 +18,18 @@
settings = { settings = {
gui = { gui = {
showFileTree = true; showFileTree = true;
showCommandLog = false; showCommandLog = false;
showIcons = true; showIcons = true;
theme = { theme = {
lightTheme = false; lightTheme = false;
activeBorderColor = ["#a6da95" "bold"]; activeBorderColor = [ "#a6da95" "bold" ];
inactiveBorderColor = ["#cad3f5"]; inactiveBorderColor = [ "#cad3f5" ];
optionsTextColor = ["#8aadf4"]; optionsTextColor = [ "#8aadf4" ];
selectedLineBgColor = ["#363a4f"]; selectedLineBgColor = [ "#363a4f" ];
selectedRangeBgColor = ["#363a4f"]; selectedRangeBgColor = [ "#363a4f" ];
cherryPickedCommitBgColor = ["#8bd5ca"]; cherryPickedCommitBgColor = [ "#8bd5ca" ];
cherryPickedCommitFgColor = ["#8aadf4"]; cherryPickedCommitFgColor = [ "#8aadf4" ];
unstagedChangesColor = ["red"]; unstagedChangesColor = [ "red" ];
}; };
}; };
update.method = "never"; update.method = "never";

7
nixos/home/gaming.nix Normal file
View file

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

9
nixos/home/messaging.nix Normal file
View file

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

View file

@ -1,13 +1,14 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
neovim neovim
gnumake gnumake
gcc gcc
python310Packages.pynvim python310Packages.pynvim
fzf fzf
ripgrep ripgrep
cargo cargo
]; rustc
];
} }

View file

@ -0,0 +1,27 @@
{ pkgs, ... }: {
imports = [
./common.nix
./gaming.nix
./messaging.nix
./dev.nix
./nomachine.nix
./python310.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "xenia";
home.homeDirectory = "/home/xenia";
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
firefox
bitwarden
];
programs.git = {
userEmail = "evie@xenia.me.uk";
};
home.stateVersion = "22.11";
}

View file

@ -1,38 +0,0 @@
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
];
home-manager.users.xenia = { pkgs, ... }: {
imports = [
./home/common.nix
./home/dev.nix
./home/python310.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "xenia";
home.homeDirectory = "/home/xenia";
home.packages = with pkgs; [
firefox
bitwarden
];
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
userEmail = "evie@xenia.me.uk";
};
home.stateVersion = "22.11";
};
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
}

View file

@ -1,11 +1,15 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{ {
imports = [ imports = [
./common.nix ./common.nix
./packages.nix ./packages.nix
./vanguard-xenia-home.nix (import "${home-manager}/nixos")
]; ];
networking.hostName = "Vanguard"; # Define your hostname. networking.hostName = "Vanguard"; # Define your hostname.
@ -75,6 +79,11 @@
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Set up home manager for user
home-manager.users.xenia = import ./home/vanguard-xenia.nix;
home-manager.useUserPackages = false;
home-manager.useGlobalPkgs = false;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;
@ -89,8 +98,8 @@
services.openssh.enable = true; services.openssh.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 ]; # networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedUDPPorts = [ 22 ]; # networking.firewall.allowedUDPPorts = [ 22 ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;