Compare commits
26 Commits
1cd22ca95e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a433f8fdde | ||
|
|
39a2703698 | ||
|
|
9c5f8eff46 | ||
|
|
3d45ff4c86 | ||
|
|
a82d1f592c | ||
|
|
f5a23fc052 | ||
|
|
6ebbbe16a7 | ||
|
|
debeda83a6 | ||
|
|
172714fd14 | ||
|
|
d65e7d9e57 | ||
|
|
51796232ad | ||
|
|
199d69b79a | ||
| 6272ac29f2 | |||
|
|
0e09603af7 | ||
|
|
7f3f6dd12f | ||
|
|
356fef695a | ||
|
|
c4796eb79c | ||
|
|
de12aa1313 | ||
|
|
76a3e5371c | ||
|
|
9ea7ca67d0 | ||
|
|
0db83a3517 | ||
|
|
31a5c24381 | ||
|
|
69a6503c53 | ||
|
|
799d942ce7 | ||
|
|
408081c786 | ||
|
|
b8ca6cf5c4 |
9
applications/matrix-element.nix
Normal file
9
applications/matrix-element.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
profile = import ./profile.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
fluffychat
|
||||||
|
];
|
||||||
|
}
|
||||||
9
applications/open-modelica.nix
Normal file
9
applications/open-modelica.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
profile = import ./profile.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
openmodelica.combined
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -48,6 +48,20 @@ in
|
|||||||
variant = "";
|
variant = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Podman service setup
|
||||||
|
virtualisation.containers.enable = true;
|
||||||
|
virtualisation = {
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||||
|
dockerCompat = true;
|
||||||
|
|
||||||
|
# Required for containers under podman-compose to be able to talk to each other.
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de-latin1";
|
console.keyMap = "de-latin1";
|
||||||
|
|
||||||
@@ -56,11 +70,53 @@ in
|
|||||||
networkmanager
|
networkmanager
|
||||||
epiphany
|
epiphany
|
||||||
nodejs_24
|
nodejs_24
|
||||||
podman
|
dive
|
||||||
podman-tui
|
podman-tui
|
||||||
podman-compose
|
podman-compose
|
||||||
|
gmp
|
||||||
|
gmp.dev
|
||||||
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
libraries = with pkgs; [
|
||||||
|
stdenv.cc.cc
|
||||||
|
zlib
|
||||||
|
gmp
|
||||||
|
openssl
|
||||||
|
curl
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libGL
|
||||||
|
xorg.libX11
|
||||||
|
appimage-run
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
# Shows battery charge of connected devices on supported
|
||||||
|
# Bluetooth adapters. Defaults to 'false'.
|
||||||
|
Experimental = true;
|
||||||
|
# When enabled other devices can connect faster to us, however
|
||||||
|
# the tradeoff is increased power consumption. Defaults to
|
||||||
|
# 'false'.
|
||||||
|
FastConnectable = true;
|
||||||
|
};
|
||||||
|
Policy = {
|
||||||
|
# Enable all controllers when they are found. This includes
|
||||||
|
# adapters present on start as well as adapters that are plugged
|
||||||
|
# in later on. Defaults to 'true'.
|
||||||
|
AutoEnable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ in
|
|||||||
./browser.nix
|
./browser.nix
|
||||||
./planner.nix
|
./planner.nix
|
||||||
./window-manager.nix
|
./window-manager.nix
|
||||||
|
../applications/matrix-element.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
evolution
|
|
||||||
pamixer
|
pamixer
|
||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ in
|
|||||||
DisableTelemetry = true;
|
DisableTelemetry = true;
|
||||||
DisableAppUpdate = true;
|
DisableAppUpdate = true;
|
||||||
|
|
||||||
EnableOpenPGP = true;
|
|
||||||
|
|
||||||
Preferences = {
|
Preferences = {
|
||||||
"mail.provider.enabled" = false;
|
"mail.provider.enabled" = false;
|
||||||
"mail.openpgp.allow_external_gnupg" = true;
|
"mail.openpgp.allow_external_gnupg" = true;
|
||||||
@@ -34,6 +32,17 @@ in
|
|||||||
Certificates = {
|
Certificates = {
|
||||||
ImportEnterpriseRoots = true;
|
ImportEnterpriseRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PasswordManagerEnabled = true;
|
||||||
|
Cookies = {
|
||||||
|
"Default" = false;
|
||||||
|
"AcceptThirdParty" = "never";
|
||||||
|
"Locked" = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
DefaultDownloadDirectory = "/tmp";
|
||||||
|
DisableBuiltinPDFViewer = true;
|
||||||
|
DisablePasswordReveal = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
let
|
let
|
||||||
dotfiles_hypr = pkgs.fetchgit {
|
dotfiles_hypr = pkgs.fetchgit {
|
||||||
url = "https://git.nichkara.eu/dotfiles/hypr";
|
url = "https://git.nichkara.eu/dotfiles/hypr";
|
||||||
rev = "afddd6b09803a66f5a77f0a8021757d2b7d87c75";
|
rev = "83da92f0d64620c6503b8b2d9fa27bd79816e025";
|
||||||
sha256 = "sha256-bIwb0gxgYcFKFGt/UhSG1oLJSnSk/EwMjO3FNRmq4ok=";
|
sha256 = "sha256-kEKJiH0oK0PuciJZ6ucinTKX5eMWxPPZXYNS1+HIcRA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dotfiles_waybar = pkgs.fetchgit {
|
dotfiles_waybar = pkgs.fetchgit {
|
||||||
url = "https://git.nichkara.eu/dotfiles/waybar";
|
url = "https://git.nichkara.eu/dotfiles/waybar";
|
||||||
rev = "47a5d2b7795fcdb26bff3a91864d19158cfc5c5c";
|
rev = "cd3d5d8a97f9fbc1cc8a69fc9e570dfcf669dce7";
|
||||||
sha256 = "sha256-0S0S+qIEa20GWeHGEOzji6rPQPPzDvyZFpyHewLuxKw=";
|
sha256 = "sha256-FTpGumhxY6ChUXqnykO+aSJiFD4A80W0eqx7hXS9Iwc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
profile = import ../../profile.nix;
|
profile = import ../../profile.nix;
|
||||||
@@ -28,6 +28,8 @@ in
|
|||||||
pamixer
|
pamixer
|
||||||
pavucontrol
|
pavucontrol
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
python313Packages.requests
|
||||||
|
networkmanagerapplet
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
profile = import ./profile.nix;
|
profile = import ./profile.nix;
|
||||||
|
home-directory = "/home/${profile.username}";
|
||||||
|
ssh-filename = "${home-directory}/.ssh/id_ed25519";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -13,8 +15,8 @@ in
|
|||||||
|
|
||||||
users.users.${profile.username} = {
|
users.users.${profile.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Nina Chloé Kassandra";
|
description = "Nina Chlóe Kassandra";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp"];
|
extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp" "uucp" "dialout"];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
hashedPassword = profile.hashed-password;
|
hashedPassword = profile.hashed-password;
|
||||||
@@ -34,7 +36,48 @@ in
|
|||||||
push = {
|
push = {
|
||||||
autoSetupRemote = true;
|
autoSetupRemote = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
Host git.nickr.eu
|
||||||
|
HostName git.nickr.eu
|
||||||
|
Port 22
|
||||||
|
|
||||||
|
Host nickr.eu
|
||||||
|
HostName nickr.eu
|
||||||
|
Port 222
|
||||||
|
|
||||||
|
Host nichkara.eu
|
||||||
|
HostName nichkara.eu
|
||||||
|
Port 222
|
||||||
|
|
||||||
|
Host git.nichkara.eu
|
||||||
|
HostName git.nichkara.eu
|
||||||
|
Port 22
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.generate-ssh-key = {
|
||||||
|
description = "Generate SSH key if missing";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = profile.username;
|
||||||
|
};
|
||||||
|
|
||||||
|
script = ''
|
||||||
|
if [ ! -f ${ssh-filename} ]; then
|
||||||
|
mkdir -p ${home-directory}/.ssh
|
||||||
|
chmod 700 ${home-directory}/.ssh
|
||||||
|
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f ${ssh-filename}
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ in
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./file-system.nix
|
./file-system.nix
|
||||||
|
./media.nix
|
||||||
|
./security/keyring.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -25,7 +27,14 @@ in
|
|||||||
|
|
||||||
# Ada/+Spark & Rust tools
|
# Ada/+Spark & Rust tools
|
||||||
alire
|
alire
|
||||||
gnat
|
gnat15
|
||||||
|
gnat15Packages.gprbuild
|
||||||
|
gnat15Packages.gpr2
|
||||||
|
gnat15Packages.gnatprove
|
||||||
|
gnat15Packages.gnatcoll-core
|
||||||
|
gnat15Packages.gnatcoll-readline
|
||||||
|
gnat15Packages.gnatcoll-python3
|
||||||
|
gnat15Packages.gnatcoll-gmp
|
||||||
rustc
|
rustc
|
||||||
cargo
|
cargo
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -3,12 +3,17 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
calibre
|
|
||||||
unzip
|
unzip
|
||||||
|
deja-dup
|
||||||
|
gnutar
|
||||||
|
xz
|
||||||
|
gzip
|
||||||
|
gz-utils
|
||||||
|
file
|
||||||
|
fileinfo
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
17
system-environment/media.nix
Normal file
17
system-environment/media.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
calibre
|
||||||
|
kdePackages.okular
|
||||||
|
vlc
|
||||||
|
totem
|
||||||
|
w3m
|
||||||
|
epr
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
18
system-environment/security/keyring.nix
Normal file
18
system-environment/security/keyring.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
profile = import ../profile.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [ ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
seahorse
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
security.pam.services.login.enableGnomeKeyring = true;
|
||||||
|
}
|
||||||
@@ -4,23 +4,16 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./editor.nix
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
|
||||||
neovim
|
|
||||||
astyle
|
astyle
|
||||||
python313Packages.pynvim
|
|
||||||
hyfetch
|
hyfetch
|
||||||
fzf
|
|
||||||
fzf-zsh
|
fzf-zsh
|
||||||
ripgrep
|
|
||||||
ripgrep-all
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
clock24 = true;
|
clock24 = true;
|
||||||
@@ -29,6 +22,9 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.direnv.enable = true;
|
||||||
|
programs.direnv.nix-direnv.enable = true;
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
21
terminal-environment/editor.nix
Normal file
21
terminal-environment/editor.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
profile = import ../profile.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
fzf
|
||||||
|
ripgrep
|
||||||
|
ripgrep-all
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
withPython3 = true;
|
||||||
|
withRuby = true;
|
||||||
|
withNodeJs = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user