summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock145
-rw-r--r--flake.nix14
-rw-r--r--machines.nix7
-rw-r--r--modules/nixos/common.nix4
-rw-r--r--modules/nixos/impermanence.nix1
-rw-r--r--modules/nixos/laptop.nix2
-rw-r--r--modules/nixos/mailserver.nix4
-rw-r--r--users.nix6
-rw-r--r--users/andromeda/home.nix18
9 files changed, 160 insertions, 41 deletions
diff --git a/flake.lock b/flake.lock
index c8431e8..a1a7ed5 100644
--- a/flake.lock
+++ b/flake.lock
@@ -23,6 +23,28 @@
"type": "github"
}
},
+ "anki-cli": {
+ "inputs": {
+ "fenix": "fenix",
+ "naersk": "naersk",
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1776249700,
+ "narHash": "sha256-7jqMOITAOGkFumw4iYys8fjGX8d2eGSZZRSufgqvfhQ=",
+ "ref": "refs/heads/master",
+ "rev": "4770f441d139ca4d08dd07f1791774273c2c7533",
+ "revCount": 9,
+ "type": "git",
+ "url": "https://git.mtgmonkey.net/Andromeda/anki-cli.git"
+ },
+ "original": {
+ "type": "git",
+ "url": "https://git.mtgmonkey.net/Andromeda/anki-cli.git"
+ }
+ },
"base16": {
"inputs": {
"fromYaml": "fromYaml"
@@ -129,6 +151,51 @@
"type": "github"
}
},
+ "fenix": {
+ "inputs": {
+ "nixpkgs": [
+ "anki-cli",
+ "nixpkgs"
+ ],
+ "rust-analyzer-src": "rust-analyzer-src"
+ },
+ "locked": {
+ "lastModified": 1776153734,
+ "narHash": "sha256-QvkVX4Go+BnNgQQLc5Ma3WNBZOG5Jpdqsy8Ri0/CbSQ=",
+ "owner": "nix-community",
+ "repo": "fenix",
+ "rev": "a8b0e62fb39299fbeb1aa365f4b57e2c258a178e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "fenix",
+ "type": "github"
+ }
+ },
+ "fenix_2": {
+ "inputs": {
+ "nixpkgs": [
+ "anki-cli",
+ "naersk",
+ "nixpkgs"
+ ],
+ "rust-analyzer-src": "rust-analyzer-src_2"
+ },
+ "locked": {
+ "lastModified": 1752475459,
+ "narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=",
+ "owner": "nix-community",
+ "repo": "fenix",
+ "rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "fenix",
+ "type": "github"
+ }
+ },
"firefox-gnome-theme": {
"flake": false,
"locked": {
@@ -419,6 +486,28 @@
"type": "github"
}
},
+ "naersk": {
+ "inputs": {
+ "fenix": "fenix_2",
+ "nixpkgs": [
+ "anki-cli",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1776193198,
+ "narHash": "sha256-U4w4GpgYt72z8pBKMDaqzlnPJRxI9pn+8tr7SOAxocE=",
+ "owner": "nix-community",
+ "repo": "naersk",
+ "rev": "e4e2ee6c9af67ecd4abb102fc32b9e49c70d92ff",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "naersk",
+ "type": "github"
+ }
+ },
"ndg": {
"inputs": {
"nixpkgs": [
@@ -512,26 +601,6 @@
"type": "github"
}
},
- "noshell": {
- "inputs": {
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1717396029,
- "narHash": "sha256-NPIhvnTYkJZqTY+aabbZ6CAaMAgG6IISvh7GZo1MTfQ=",
- "owner": "viperML",
- "repo": "noshell",
- "rev": "4d194d838a50ea106cd0e47c024e47afc154ab42",
- "type": "github"
- },
- "original": {
- "owner": "viperML",
- "repo": "noshell",
- "type": "github"
- }
- },
"nur": {
"inputs": {
"flake-parts": "flake-parts",
@@ -626,18 +695,52 @@
"root": {
"inputs": {
"agenix": "agenix",
+ "anki-cli": "anki-cli",
"home-manager": "home-manager_2",
"impermanence": "impermanence",
"nix-zulip": "nix-zulip",
"nixos-mailserver": "nixos-mailserver",
"nixpkgs": "nixpkgs_2",
- "noshell": "noshell",
"nur": "nur",
"nvf": "nvf",
"phoenix": "phoenix",
"stylix": "stylix"
}
},
+ "rust-analyzer-src": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1776115521,
+ "narHash": "sha256-N/R1//Xd8vr84LtyTy8CVz7V2n9NJXXlJEODSunLE9c=",
+ "owner": "rust-lang",
+ "repo": "rust-analyzer",
+ "rev": "5205b52ea60dd49c7e33dd2ad1a3e7ef55bb30ec",
+ "type": "github"
+ },
+ "original": {
+ "owner": "rust-lang",
+ "ref": "nightly",
+ "repo": "rust-analyzer",
+ "type": "github"
+ }
+ },
+ "rust-analyzer-src_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1752428706,
+ "narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=",
+ "owner": "rust-lang",
+ "repo": "rust-analyzer",
+ "rev": "591e3b7624be97e4443ea7b5542c191311aa141d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "rust-lang",
+ "ref": "nightly",
+ "repo": "rust-analyzer",
+ "type": "github"
+ }
+ },
"stylix": {
"inputs": {
"base16": "base16",
diff --git a/flake.nix b/flake.nix
index dcf6c0a..acdcc8f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,6 +4,10 @@
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
+ anki-cli = {
+ url = "git+https://git.mtgmonkey.net/Andromeda/anki-cli.git";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@@ -18,10 +22,6 @@
url = "git+https://git.afnix.fr/nix-zulip/nix-zulip";
flake = false;
};
- noshell = {
- url = "github:viperML/noshell";
- inputs.nixpkgs.follows = "nixpkgs";
- };
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
@@ -41,12 +41,12 @@
};
outputs = {
agenix,
+ anki-cli,
home-manager,
impermanence,
nixos-mailserver,
nixpkgs,
nix-zulip,
- noshell,
nur,
nvf,
phoenix,
@@ -68,7 +68,6 @@
agenix.nixosModules.default
impermanence.nixosModules.impermanence
nixos-mailserver.nixosModule
- noshell.nixosModules.default
nix-zulip'.nixosModules.zulip
phoenix.nixosModules.default
({pkgs, ...}: {
@@ -76,6 +75,9 @@
agenix.overlays.default
nur.overlays.default
nix-zulip'.overlays.default
+ (self: super: {
+ anki-cli = anki-cli.packages.${machine.system}.default;
+ })
];
})
]
diff --git a/machines.nix b/machines.nix
index b9bf1b6..e2bb4b7 100644
--- a/machines.nix
+++ b/machines.nix
@@ -35,6 +35,13 @@
# substitutors
./substitutors.nix
+
+ {
+ services.guix = {
+ enable = true;
+ stateDir = "/gnu/var";
+ };
+ }
];
};
"109-199-104-83" = {
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix
index ba476e5..6082d91 100644
--- a/modules/nixos/common.nix
+++ b/modules/nixos/common.nix
@@ -10,8 +10,8 @@
];
# allows users to customize shell in `$XDG_CONFIG_HOME/shell` rather than
- # needing /etc/shells. Useful for home-manager. Falls back.
- programs.noshell.enable = true;
+ # needing /etc/shells. Useful for home-manager.
+ # programs.noshell.enable = true;
# cleans /tmp to maintain a tidy system
boot.tmp.cleanOnBoot = true;
diff --git a/modules/nixos/impermanence.nix b/modules/nixos/impermanence.nix
index 7f0062b..90a3b92 100644
--- a/modules/nixos/impermanence.nix
+++ b/modules/nixos/impermanence.nix
@@ -7,6 +7,7 @@
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
+ "/gnu"
];
files = [
"/etc/machine-id"
diff --git a/modules/nixos/laptop.nix b/modules/nixos/laptop.nix
index 314fead..4f51923 100644
--- a/modules/nixos/laptop.nix
+++ b/modules/nixos/laptop.nix
@@ -7,7 +7,7 @@
services.blueman.enable = true;
# locale
- i18n.defaultLocale = "de_DE.UTF-8";
+ i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Berlin";
# networking
diff --git a/modules/nixos/mailserver.nix b/modules/nixos/mailserver.nix
index eb4d45d..300b78e 100644
--- a/modules/nixos/mailserver.nix
+++ b/modules/nixos/mailserver.nix
@@ -37,10 +37,6 @@
forceSSL = true;
enableACME = true;
};
- "matrix.${config.networking.domain}" = {
- forceSSL = true;
- enableACME = true;
- };
"${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
diff --git a/users.nix b/users.nix
index f0876bd..9e1e9fb 100644
--- a/users.nix
+++ b/users.nix
@@ -13,8 +13,9 @@
description = "andromeda";
hashedPasswordFile = builtins.toString config.age.secrets.andromeda-pw.path;
extraGroups = [
- "networkmanager"
- "wheel"
+ "networkmanager" # network configuration
+ "wheel" # serial
+ "dialout" # access to serial ports
];
};
};
@@ -41,7 +42,6 @@
];
files = [
".bash_history"
- ".brush_history"
];
};
}
diff --git a/users/andromeda/home.nix b/users/andromeda/home.nix
index c568659..d706248 100644
--- a/users/andromeda/home.nix
+++ b/users/andromeda/home.nix
@@ -18,7 +18,6 @@
};
in {
imports = [./stylix.nix];
- xdg.configFile."shell".source = lib.getExe pkgs.brush;
xdg.configFile."sway/config".source = lib.mkForce sway_config;
wayland.windowManager.sway.enable = true;
home = {
@@ -31,24 +30,30 @@ in {
pkgs.agenix
pkgs.alacritty
pkgs.anki
+ pkgs.anki-cli
pkgs.brightnessctl
- pkgs.brush
pkgs.dust
pkgs.fluffychat
pkgs.fzf
+ pkgs.gdb
pkgs.geeqie
pkgs.glow
pkgs.grim
+ pkgs.hexdump
+ pkgs.http-server
pkgs.jmtpfs
pkgs.mindustry-wayland
+ pkgs.nasm
pkgs.nix-output-monitor
pkgs.npins
pkgs.ranger
pkgs.rip2
pkgs.ripgrep
pkgs.slurp
+ pkgs.tokei
pkgs.tree
- pkgs.zoxide
+ pkgs.wget
+ pkgs.xxd
];
file.${background-path}.source = config.stylix.image;
};
@@ -56,6 +61,7 @@ in {
alacritty.enable = true;
bash = {
enable = true;
+ enableCompletion = false;
shellAliases = {
neofetch = "fastfetch";
ls = lib.mkForce "lsd";
@@ -67,7 +73,6 @@ in {
};
bashrcExtra = ''
PS1="\u@\h:\w$"
- eval "$(zoxide init bash)"
'';
};
btop = {
@@ -138,6 +143,7 @@ in {
nvf = {
enable = true;
settings.vim = {
+ startPlugins = [pkgs.vimPlugins.parinfer-rust];
autocomplete.nvim-cmp.enable = false;
formatter.conform-nvim = {
enable = true;
@@ -227,6 +233,10 @@ in {
};
};
ssh.enable = true;
+ zoxide = {
+ enable = true;
+ enableBashIntegration = true;
+ };
};
services.gpg-agent = {
enable = true;