Bit more theming

Move nix settings to flake.nix and (hopefully) set nixpkgs to current flake
This commit is contained in:
Evie Litherland-Smith 2023-10-15 12:27:16 +01:00
parent 3ff173a608
commit 2f60d7894c
5 changed files with 41 additions and 44 deletions

View file

@ -82,12 +82,45 @@
./hosts/${hostName}/hardware-configuration.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
({ pkgs, ... }: {
({ config, lib, pkgs, ... }: {
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
programs.${shell}.enable = true;
nix = {
enable = true;
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
channel.enable = false;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
registry = {
nixpkgs.to = {
type = "path";
path = pkgs.path;
};
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
optimise.automatic = true;
extraOptions = ''
keep-outputs = true
keep-derivations = true
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"nomachine-client"
];
system = { inherit stateVersion; };
networking = { inherit hostName; };
users.users.${user} = {

View file

@ -1,7 +1,6 @@
{ pkgs, tokyonight-folke, ... }:
{
stylix.targets.alacritty.enable = false;
programs.alacritty = {
enable = true;
settings = {
@ -13,11 +12,6 @@
y = 10;
};
decorations = "none";
opacity = 0.8;
};
font = {
normal.family = "Fira Mono";
size = 14.0;
};
selection.save_to_clipboard = true;
live_config_reload = true;

View file

@ -99,17 +99,14 @@
command_timeout = 1000;
add_newline = true;
character = {
success_symbol = "[󱢠 ](green)";
error_symbol = "[](red)";
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
directory = {
truncation_length = 2;
fish_style_pwd_dir_length = 1;
read_only = " 󰉐";
# style = "bold lavender";
truncate_to_repo = false;
# before_repo_root_style = "bold lavender";
# repo_root_style = "bold teal";
};
line_break.disabled = false;
git_branch = {
@ -126,7 +123,6 @@
hostname = {
ssh_only = true;
ssh_symbol = "󰢹 ";
# style = "bold green";
};
localip.disabled = false;
memory_usage = {
@ -137,7 +133,7 @@
os = {
disabled = false;
format = "on [$symbol $name ]($style)";
# style = "bold blue";
style = "bold blue";
symbols = {
Alpine = " ";
Android = " ";

View file

@ -1,30 +1,6 @@
{ config, lib, pkgs, ... }:
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
in {
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
extraOptions = ''
keep-outputs = true
keep-derivations = true
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"nomachine-client"
];
networking = {
networkmanager.enable = true;
nameservers = [ "9.9.9.9" ];

View file

@ -22,6 +22,10 @@
stylix = {
image = ./wallpapers/default.jpg;
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
opacity = {
popups = 0.8;
terminal = 0.8;
};
fonts = rec {
emoji = {
name = "Noto Color Emoji";
@ -36,12 +40,6 @@
package = pkgs.fira;
};
serif = sansSerif;
sizes = {
applications = 12;
desktop = 12;
popups = 12;
terminal = 12;
};
};
homeManagerIntegration.followSystem = true;
};