Compare commits
No commits in common. "beaab5fddaadf62a0b2f540ed604147afa4c22c1" and "00960faecbe0712d2b9ac911cb74f9a32e91ad45" have entirely different histories.
beaab5fdda
...
00960faecb
|
|
@ -20,13 +20,13 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations.hyuganatsu = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit pkgs-stable;
|
inherit pkgs-stable;
|
||||||
inherit flake-programs-sqlite;
|
inherit flake-programs-sqlite;
|
||||||
};
|
};
|
||||||
modules = [ system/hyuganatsu ];
|
modules = [ ./system ];
|
||||||
};
|
};
|
||||||
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,11 @@
|
||||||
|
|
||||||
boot.tmp.useTmpfs = true;
|
boot.tmp.useTmpfs = true;
|
||||||
|
|
||||||
|
networking.hostName = "nixos";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
wget
|
wget
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./display.nix
|
./display.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
./locale.nix
|
./locale.nix
|
||||||
./plasma.nix
|
./plasma.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
desktopManager.plasma5.enable = true;
|
desktopManager.plasma5.enable = true;
|
||||||
autoRepeatDelay = 200;
|
autoRepeatDelay = 200;
|
||||||
autoRepeatInterval = 30;
|
autoRepeatInterval = 30;
|
||||||
|
videoDrivers = [ "amdgpu" ];
|
||||||
|
deviceSection = ''Option "TearFree" "true"'';
|
||||||
};
|
};
|
||||||
services.libinput = {
|
services.libinput = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
../common
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "hyuganatsu";
|
|
||||||
time.timeZone = "America/Chicago";
|
|
||||||
services.xserver = {
|
|
||||||
videoDrivers = [ "amdgpu" ];
|
|
||||||
deviceSection = ''Option "TearFree" "true"'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
if [ "$#" -ne 1 ]; then
|
|
||||||
echo "usage: $0 <file>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
first_link () {
|
|
||||||
if [ "${1%/*}" != "$1" ]; then
|
|
||||||
local x="$(first_link "${1%/*}")"
|
|
||||||
fi
|
|
||||||
if [ -z "$x" ] && [ -L "$1" ]; then
|
|
||||||
echo "$1"
|
|
||||||
else
|
|
||||||
echo "$x"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
NIX="$HOME/.local/nixos/user"
|
|
||||||
FIRST="$(first_link "$(realpath -s "$1")")"
|
|
||||||
if ! [ -z "$FIRST" ]; then
|
|
||||||
LINKED="$(realpath "$FIRST")"
|
|
||||||
if [ "${LINKED#/nix/store/}" != "$LINKED" ]; then
|
|
||||||
CONFIG="${FIRST#~/.config/}"
|
|
||||||
if [ "$CONFIG" != "$FIRST" ] && [ -e "$NIX/config/$CONFIG" ]; then
|
|
||||||
rm "$FIRST"
|
|
||||||
ln -s "$NIX/config/$CONFIG" "$FIRST"
|
|
||||||
$EDITOR "$1"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
BIN="${FIRST#~/.local/bin}"
|
|
||||||
if [ "$BIN" != "$FIRST" ] && [ -e "$NIX/bin/$BIN" ]; then
|
|
||||||
rm "$FIRST"
|
|
||||||
ln -s "$NIX/bin/$BIN" "$FIRST"
|
|
||||||
$EDITOR "$1"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
echo "not symlinkable"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if ! [ -e "$1" ]; then
|
|
||||||
DIR="${1%/*}"
|
|
||||||
[ "$DIR" != "$1" ] && mkdir -p "$DIR"
|
|
||||||
fi
|
|
||||||
$EDITOR "$1"
|
|
||||||
|
|
@ -12,6 +12,7 @@ $line_break\
|
||||||
$jobs\
|
$jobs\
|
||||||
$shlvl\
|
$shlvl\
|
||||||
$status\
|
$status\
|
||||||
|
$shell\
|
||||||
$nix_shell\
|
$nix_shell\
|
||||||
$character"""
|
$character"""
|
||||||
|
|
||||||
|
|
@ -23,6 +24,12 @@ symbol = "x"
|
||||||
success_symbol = '[\$](bold green)'
|
success_symbol = '[\$](bold green)'
|
||||||
error_symbol = '[\$](bold red)'
|
error_symbol = '[\$](bold red)'
|
||||||
|
|
||||||
|
[shell]
|
||||||
|
disabled = true
|
||||||
|
bash_indicator = "[bsh](yellow italic)"
|
||||||
|
zsh_indicator = "[zsh](blue italic)"
|
||||||
|
fish_indicator = "[fsh](green italic)"
|
||||||
|
|
||||||
[fill]
|
[fill]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
|
|
@ -33,7 +40,7 @@ style_user = "#E34F7C"
|
||||||
style_root = "#4571a2 bg:red"
|
style_root = "#4571a2 bg:red"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format = "[$path [$read_only]($style bg:red inverted)]($style bg:white inverted)[ ]($style)"
|
format = "[ $path [$read_only]($style bg:red inverted)]($style bg:white inverted)[ ]($style)"
|
||||||
style = "#443f59"
|
style = "#443f59"
|
||||||
read_only =" "
|
read_only =" "
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue