Bit more theming
Move nix settings to flake.nix and (hopefully) set nixpkgs to current flake
This commit is contained in:
parent
3ff173a608
commit
2f60d7894c
35
flake.nix
35
flake.nix
|
@ -82,12 +82,45 @@
|
||||||
./hosts/${hostName}/hardware-configuration.nix
|
./hosts/${hostName}/hardware-configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
({ pkgs, ... }: {
|
({ config, lib, pkgs, ... }: {
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
programs.${shell}.enable = 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; };
|
system = { inherit stateVersion; };
|
||||||
networking = { inherit hostName; };
|
networking = { inherit hostName; };
|
||||||
users.users.${user} = {
|
users.users.${user} = {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ pkgs, tokyonight-folke, ... }:
|
{ pkgs, tokyonight-folke, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
stylix.targets.alacritty.enable = false;
|
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -13,11 +12,6 @@
|
||||||
y = 10;
|
y = 10;
|
||||||
};
|
};
|
||||||
decorations = "none";
|
decorations = "none";
|
||||||
opacity = 0.8;
|
|
||||||
};
|
|
||||||
font = {
|
|
||||||
normal.family = "Fira Mono";
|
|
||||||
size = 14.0;
|
|
||||||
};
|
};
|
||||||
selection.save_to_clipboard = true;
|
selection.save_to_clipboard = true;
|
||||||
live_config_reload = true;
|
live_config_reload = true;
|
||||||
|
|
|
@ -99,17 +99,14 @@
|
||||||
command_timeout = 1000;
|
command_timeout = 1000;
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[ ❯](green)";
|
success_symbol = "[➜](bold green)";
|
||||||
error_symbol = "[❯](red)";
|
error_symbol = "[✗](bold red)";
|
||||||
};
|
};
|
||||||
directory = {
|
directory = {
|
||||||
truncation_length = 2;
|
truncation_length = 2;
|
||||||
fish_style_pwd_dir_length = 1;
|
fish_style_pwd_dir_length = 1;
|
||||||
read_only = " ";
|
read_only = " ";
|
||||||
# style = "bold lavender";
|
|
||||||
truncate_to_repo = false;
|
truncate_to_repo = false;
|
||||||
# before_repo_root_style = "bold lavender";
|
|
||||||
# repo_root_style = "bold teal";
|
|
||||||
};
|
};
|
||||||
line_break.disabled = false;
|
line_break.disabled = false;
|
||||||
git_branch = {
|
git_branch = {
|
||||||
|
@ -126,7 +123,6 @@
|
||||||
hostname = {
|
hostname = {
|
||||||
ssh_only = true;
|
ssh_only = true;
|
||||||
ssh_symbol = " ";
|
ssh_symbol = " ";
|
||||||
# style = "bold green";
|
|
||||||
};
|
};
|
||||||
localip.disabled = false;
|
localip.disabled = false;
|
||||||
memory_usage = {
|
memory_usage = {
|
||||||
|
@ -137,7 +133,7 @@
|
||||||
os = {
|
os = {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
format = "on [$symbol $name ]($style)";
|
format = "on [$symbol $name ]($style)";
|
||||||
# style = "bold blue";
|
style = "bold blue";
|
||||||
symbols = {
|
symbols = {
|
||||||
Alpine = " ";
|
Alpine = " ";
|
||||||
Android = " ";
|
Android = " ";
|
||||||
|
|
|
@ -1,30 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||||
in {
|
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 = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
nameservers = [ "9.9.9.9" ];
|
nameservers = [ "9.9.9.9" ];
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
stylix = {
|
stylix = {
|
||||||
image = ./wallpapers/default.jpg;
|
image = ./wallpapers/default.jpg;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||||
|
opacity = {
|
||||||
|
popups = 0.8;
|
||||||
|
terminal = 0.8;
|
||||||
|
};
|
||||||
fonts = rec {
|
fonts = rec {
|
||||||
emoji = {
|
emoji = {
|
||||||
name = "Noto Color Emoji";
|
name = "Noto Color Emoji";
|
||||||
|
@ -36,12 +40,6 @@
|
||||||
package = pkgs.fira;
|
package = pkgs.fira;
|
||||||
};
|
};
|
||||||
serif = sansSerif;
|
serif = sansSerif;
|
||||||
sizes = {
|
|
||||||
applications = 12;
|
|
||||||
desktop = 12;
|
|
||||||
popups = 12;
|
|
||||||
terminal = 12;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
homeManagerIntegration.followSystem = true;
|
homeManagerIntegration.followSystem = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue