Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6a7549e025
|
|||
|
89022e0d50
|
|||
|
cd1d6de848
|
|||
|
c49ae0edc1
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
outputs = inputs:
|
outputs = inputs:
|
||||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
systems = ["x86_64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
|
|
||||||
imports = [./hosts ./pkgs];
|
imports = [./hosts ./pkgs];
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
# editor
|
# editor
|
||||||
neovim
|
neovim
|
||||||
|
|
||||||
#messaging
|
#messaging
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
vesktop
|
vesktop
|
||||||
@@ -24,6 +25,8 @@
|
|||||||
imagemagick
|
imagemagick
|
||||||
bun
|
bun
|
||||||
fastfetch
|
fastfetch
|
||||||
|
act
|
||||||
|
protonvpn-gui
|
||||||
|
|
||||||
wl-mirror
|
wl-mirror
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
# Custom bindings
|
# Custom bindings
|
||||||
for mode in insert default
|
for mode in insert default
|
||||||
bind -M $mode ctrl-backspace backward-kill-word
|
bind -M $mode ctrl-backspace backward-kill-word
|
||||||
|
bind -M $mode ctrl-delete kill-word
|
||||||
|
bind -M $mode alt-backspace backward-kill-token
|
||||||
|
bind -M $mode alt-delete kill-token
|
||||||
bind -M $mode ctrl-z undo
|
bind -M $mode ctrl-z undo
|
||||||
end
|
end
|
||||||
bind -M insert \cx\ce edit_command_buffer
|
bind -M insert \cx\ce edit_command_buffer
|
||||||
@@ -172,8 +175,6 @@ end
|
|||||||
alias cleanram="sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'"
|
alias cleanram="sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'"
|
||||||
alias trimall="sudo fstrim -va"
|
alias trimall="sudo fstrim -va"
|
||||||
alias c="clear"
|
alias c="clear"
|
||||||
alias test-build="sudo nixos-rebuild test --flake /etc/nixos#aesthetic"
|
|
||||||
alias switch-build="sudo nixos-rebuild switch --flake /etc/nixos#aesthetic"
|
|
||||||
alias add="git add ."
|
alias add="git add ."
|
||||||
alias commit="git commit"
|
alias commit="git commit"
|
||||||
alias push="git push"
|
alias push="git push"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ in {
|
|||||||
|
|
||||||
xdg.configFile."${configFile}".source = toYAML "config.yml" {
|
xdg.configFile."${configFile}".source = toYAML "config.yml" {
|
||||||
version = 1;
|
version = 1;
|
||||||
git_protocol = "https";
|
git_protocol = "ssh";
|
||||||
editor = "nvim";
|
editor = "nvim";
|
||||||
prompt = "enabled";
|
prompt = "enabled";
|
||||||
prefer_editor_prompt = "disabled";
|
prefer_editor_prompt = "disabled";
|
||||||
@@ -17,7 +17,6 @@ in {
|
|||||||
aliases = {
|
aliases = {
|
||||||
co = "pr checkout";
|
co = "pr checkout";
|
||||||
};
|
};
|
||||||
http_unix_socket = "";
|
|
||||||
browser = "zen";
|
browser = "zen";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -132,8 +132,6 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "aesthetic";
|
|
||||||
|
|
||||||
security.tpm2.enable = true;
|
security.tpm2.enable = true;
|
||||||
|
|
||||||
# Additional security hardening for HSI compliance
|
# Additional security hardening for HSI compliance
|
||||||
|
|||||||
+34
-22
@@ -2,32 +2,44 @@
|
|||||||
self,
|
self,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
flake.nixosConfigurations = let
|
# shorten paths
|
||||||
# shorten paths
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||||
inherit (inputs.nixpkgs.lib) nixosSystem;
|
mod = "${self}/system";
|
||||||
mod = "${self}/system";
|
home = "${self}/home";
|
||||||
home = "${self}/home";
|
|
||||||
|
|
||||||
# get the basic config to build on top of
|
# get the basic config to build on top of
|
||||||
inherit (import "${self}/system") desktop laptop;
|
inherit (import "${self}/system") tty desktop laptop;
|
||||||
|
|
||||||
# get these into the module system
|
# get these into the module system
|
||||||
specialArgs = {inherit inputs self;};
|
specialArgs = {inherit inputs self;};
|
||||||
in {
|
|
||||||
aesthetic = nixosSystem {
|
# shared modules for all configurations
|
||||||
|
sharedModules = [
|
||||||
|
./aesthetic
|
||||||
|
"${mod}/services/gnome-services.nix"
|
||||||
|
"${mod}/core/limine.nix"
|
||||||
|
"${home}"
|
||||||
|
inputs.agenix.nixosModules.default
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
flake.nixosConfigurations = {
|
||||||
|
# TTY: desktop headless (no GUI)
|
||||||
|
tty = nixosSystem {
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules =
|
modules = tty ++ sharedModules;
|
||||||
desktop
|
};
|
||||||
++ laptop
|
|
||||||
++ [
|
|
||||||
./aesthetic
|
|
||||||
"${mod}/services/gnome-services.nix"
|
|
||||||
"${mod}/core/limine.nix"
|
|
||||||
"${home}"
|
|
||||||
|
|
||||||
inputs.agenix.nixosModules.default
|
# Desktop: desktop with GUI
|
||||||
];
|
desktop = nixosSystem {
|
||||||
|
inherit specialArgs;
|
||||||
|
modules = desktop ++ sharedModules;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Laptop: laptop with GUI + battery + bluetooth
|
||||||
|
laptop = nixosSystem {
|
||||||
|
inherit specialArgs;
|
||||||
|
modules = laptop ++ sharedModules;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+3490
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
systems = ["x86_64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
|
|
||||||
perSystem = {pkgs, ...}: {
|
perSystem = {pkgs, ...}: {
|
||||||
packages = {
|
packages = {
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
let
|
let
|
||||||
host = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICL0B9moxOPY4XYim8826M+Tf0sWErwWljz1gkDZPwuF root@aesthetic";
|
host = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICL0B9moxOPY4XYim8826M+Tf0sWErwWljz1gkDZPwuF";
|
||||||
in {
|
in {
|
||||||
"gitea_laptop.age".publicKeys = [
|
"gitea_laptop.age".publicKeys = [
|
||||||
host
|
host
|
||||||
|
|||||||
+24
-14
@@ -1,28 +1,38 @@
|
|||||||
let
|
let
|
||||||
desktop = [
|
# Base system - common for all configurations
|
||||||
./core/boot.nix
|
base = [
|
||||||
./core/default.nix
|
./core/default.nix
|
||||||
|
|
||||||
./hardware/graphics.nix
|
|
||||||
./hardware/fwupd.nix
|
./hardware/fwupd.nix
|
||||||
|
|
||||||
./network/default.nix
|
./network/default.nix
|
||||||
|
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
./services
|
./services/default.nix
|
||||||
./services/docker.nix
|
./services/docker.nix
|
||||||
./services/greetd.nix
|
|
||||||
./services/pipewire.nix
|
|
||||||
./services/xdg-portal-fix.nix
|
./services/xdg-portal-fix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
laptop =
|
# GUI-specific modules (display manager, GPU, pipewire)
|
||||||
desktop
|
gui = [
|
||||||
++ [
|
./core/boot.nix # plymouth boot splash
|
||||||
./hardware/bluetooth.nix
|
./hardware/graphics.nix # GPU drivers
|
||||||
./services/power.nix
|
./services/greetd.nix # display manager
|
||||||
];
|
./services/pipewire.nix # audio
|
||||||
|
];
|
||||||
|
|
||||||
|
# Laptop-specific modules (battery, bluetooth)
|
||||||
|
laptop = [
|
||||||
|
./hardware/bluetooth.nix
|
||||||
|
./services/power.nix
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
inherit desktop laptop;
|
# TTY: desktop headless (no GUI)
|
||||||
|
tty = base;
|
||||||
|
|
||||||
|
# Desktop: desktop with GUI
|
||||||
|
desktop = base ++ gui;
|
||||||
|
|
||||||
|
# Laptop: laptop with GUI + battery + bluetooth
|
||||||
|
laptop = base ++ gui ++ laptop;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./avahi.nix
|
||||||
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = ["1.1.1.1" "1.0.0.1"];
|
nameservers = ["1.1.1.1" "1.0.0.1"];
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
irqbalance.enable = true;
|
irqbalance.enable = true;
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
speechd.enable = lib.mkForce false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use in place of hypridle's before_sleep_cmd, since systemd does not wait for
|
# Use in place of hypridle's before_sleep_cmd, since systemd does not wait for
|
||||||
|
|||||||
Reference in New Issue
Block a user