Compare commits
4 commits
995714ced3
...
93b80d45f4
Author | SHA1 | Date | |
---|---|---|---|
93b80d45f4 | |||
4946136de3 | |||
af25da9eea | |||
12b8e8f6f4 |
8 changed files with 38 additions and 60 deletions
|
@ -102,8 +102,7 @@ with builtins;
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
users.users.jade = {
|
||||||
users.users.jade = {
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" "dialout" "plugdev" "wireshark" ];
|
extraGroups = [ "wheel" "input" "uinput" "libvirtd" "adbusers" "dialout" "plugdev" "wireshark" ];
|
||||||
packages = [
|
packages = [
|
||||||
|
|
34
flake.nix
34
flake.nix
|
@ -79,40 +79,6 @@
|
||||||
nixos-hardware.nixosModules.apple-t2
|
nixos-hardware.nixosModules.apple-t2
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
schrottserver = nixpkgs-stable.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
./hosts/schrottserver/configuration.nix
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
|
|
||||||
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
|
||||||
home.stateVersion = "${nixosConfig.system.stateVersion}";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
katzencafe = nixpkgs-stable.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
system = "aarch64-linux";
|
|
||||||
modules = [
|
|
||||||
./hosts/katzencafe/configuration.nix
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
|
|
||||||
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
|
||||||
home.stateVersion = "${nixosConfig.system.stateVersion}";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
swapDevices = [{
|
swapDevices = [{
|
||||||
device = "/swap/swapfile";
|
device = "/swap/swapfile";
|
||||||
size = (1024 * 12);
|
size = (1024 * 24);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|
8
justfile
8
justfile
|
@ -1,8 +1,8 @@
|
||||||
build:
|
|
||||||
sudo nixos-rebuild switch --flake . --impure
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
sudo nixos-rebuild test --flake . --impure
|
sudo nixos-rebuild test --flake . --impure
|
||||||
|
|
||||||
|
build:
|
||||||
|
sudo nixos-rebuild switch --flake . --impure
|
||||||
|
|
||||||
update:
|
update:
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
|
|
@ -21,5 +21,8 @@ in {
|
||||||
systemd.services.evremap = {
|
systemd.services.evremap = {
|
||||||
script = "${evremap}/bin/evremap remap ${../../other/remaps-${config.networking.hostName}.toml}";
|
script = "${evremap}/bin/evremap remap ${../../other/remaps-${config.networking.hostName}.toml}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
unitConfig = {
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,6 @@ in with lib; {
|
||||||
enable = mkEnableOption "Enable gaming stuff";
|
enable = mkEnableOption "Enable gaming stuff";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
#nixpkgs.overlays = [
|
|
||||||
#(import (builtins.fetchTarball "https://github.com/PrismLauncher/PrismLauncher/archive/develop.tar.gz")).overlay
|
|
||||||
#];
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
home-manager.users.jade = { pkgs, ... }: {
|
home-manager.users.jade = { pkgs, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -87,41 +87,54 @@
|
||||||
"network-base" = {
|
"network-base" = {
|
||||||
type = "internal/network";
|
type = "internal/network";
|
||||||
interval = 5;
|
interval = 5;
|
||||||
format-connected = "<label-connected>";
|
format-connected = "<ramp-signal> <label-connected>";
|
||||||
format-disconnected = "<label-disconnected>";
|
format-disconnected = "<label-disconnected>";
|
||||||
label-disconnected = "%{F#F0C674}%ifname%%{F#707880} disconnected";
|
label-disconnected = "";
|
||||||
|
label-disconnected-foreground = "#d65d0e";
|
||||||
|
ramp.signal = [ "" "" "" "" "" ];
|
||||||
|
ramp-signal-foreground = "#d65d0e";
|
||||||
|
ramp-signal-foreground-0 = "#cc241d";
|
||||||
|
ramp-signal-foreground-4 = "#bdae93";
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/wlan" = {
|
"module/wlan" = {
|
||||||
"inherit" = "network-base";
|
"inherit" = "network-base";
|
||||||
interface-type = "wireless";
|
interface-type = "wireless";
|
||||||
label-connected = "%{F#F0C674}%ifname%%{F-} %essid% %local_ip%";
|
label-connected = "%{F#F0C674}%{F-} %local_ip%";
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/battery" = {
|
"module/battery" = {
|
||||||
type = "internal/battery";
|
type = "internal/battery";
|
||||||
poll-interval = 1;
|
poll-interval = 1;
|
||||||
full-at = 96;
|
|
||||||
battery = "BAT0";
|
battery = "BAT0";
|
||||||
adapter = "ADP1";
|
adapter = "ADP1";
|
||||||
time-format = "%H:%M";
|
time-format = "%H%{F#7c6f64}:%{F#d5c4a1}%M";
|
||||||
label-charging = "%percentage%% %time%";
|
label-charging = "%{F#98971a} %{F#ebdbb2}%percentage%%%{F#d5c4a1} %time%";
|
||||||
format-charging = "<ramp-capacity> <label-charging>";
|
format-charging = "<ramp-capacity> <label-charging>";
|
||||||
label-discharging = "%percentage%% %time%";
|
label-discharging = "%percentage%%%{F#bdae93} %time%";
|
||||||
format-discharging = "<ramp-capacity> <label-discharging>";
|
format-discharging = "<ramp-capacity> <label-discharging>";
|
||||||
label-full = "%percentage%%";
|
label-full = "%{F#d65d0e}%{F#ebdbb2} %percentage%%";
|
||||||
format-full = " <label-full>";
|
format-full = "<label-full>";
|
||||||
label-low = "%percentage%%";
|
label-low = "%{F#d65d0e}%{F#ebdbb2} %percentage%%";
|
||||||
format-low = " <label-low>";
|
format-low = "<label-low>";
|
||||||
ramp.capacity = [ "" "" "" "" "" "" "" "" "" "" ];
|
ramp.capacity = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||||
|
ramp-capacity-foreground = "#d65d0e";
|
||||||
|
|
||||||
|
ramp-capacity-foreground-0 = "#cc241d";
|
||||||
|
ramp-capacity-foreground-1 = "#cc241d";
|
||||||
|
ramp-capacity-foreground-2 = "#cc241d";
|
||||||
|
|
||||||
|
ramp-capacity-foreground-7 = "#bdae93";
|
||||||
|
ramp-capacity-foreground-8 = "#bdae93";
|
||||||
|
ramp-capacity-foreground-9 = "#bdae93";
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/date" = {
|
"module/date" = {
|
||||||
type = "internal/date";
|
type = "internal/date";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
date = "%Y-%m-%d %H:%M:%S";
|
date = "%Y%{F#7c6f64}-%{F#ebdbb2}%m%{F#7c6f64}-%{F#ebdbb2}%d";
|
||||||
label = "%date%";
|
time = "%H%{F#7c6f64}:%{F#ebdbb2}%M%{F#7c6f64}:%{F#ebdbb2}%S";
|
||||||
label-foreground = "\${colors.foreground}";
|
label = "%{F#d65d0e}%{F#ebdbb2} %date% %{F#d65d0e}%{F#ebdbb2} %time%";
|
||||||
};
|
};
|
||||||
|
|
||||||
"settings" = {
|
"settings" = {
|
||||||
|
|
|
@ -6,7 +6,7 @@ def main [
|
||||||
|
|
||||||
let currentnet = (
|
let currentnet = (
|
||||||
nmcli -m tabular connection show --active
|
nmcli -m tabular connection show --active
|
||||||
| detect columns
|
| from ssv
|
||||||
| first
|
| first
|
||||||
| get name
|
| get name
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue