Compare commits
18 Commits
018205d529
...
no-lightdm
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f3f6dd12f | ||
|
|
356fef695a | ||
|
|
c4796eb79c | ||
|
|
de12aa1313 | ||
|
|
76a3e5371c | ||
|
|
9ea7ca67d0 | ||
|
|
0db83a3517 | ||
|
|
31a5c24381 | ||
|
|
69a6503c53 | ||
|
|
799d942ce7 | ||
|
|
408081c786 | ||
|
|
b8ca6cf5c4 | ||
|
|
1cd22ca95e | ||
| fbf66ac0e8 | |||
| 437d486fec | |||
| 620ea7a061 | |||
| 6eb53c661a | |||
| 52344e28b1 |
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; [
|
||||||
|
element-desktop
|
||||||
|
];
|
||||||
|
}
|
||||||
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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -3,7 +3,9 @@
|
|||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
profile = import ./profile.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "amelia"; # Define your hostname.
|
networking.hostName = profile.hostname; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
profile = import ../profile.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./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
|
||||||
nerd-fonts.open-dyslexic
|
|
||||||
nemo-with-extensions
|
nemo-with-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -24,7 +26,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "Hyprland";
|
command = "Hyprland";
|
||||||
user = "nichkara";
|
user = profile.username;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,35 +1,9 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
dotfiles_hypr = pkgs.fetchgit {
|
profile = import ../profile.nix;
|
||||||
url = "https://git.nichkara.eu/dotfiles/hypr";
|
|
||||||
rev = "96f9ca03450049baffbc8a2b71c3a40367edd2a5";
|
|
||||||
sha256 = "sha256-dHxf2UNEDC/KyDgjMMQ988hyGM2gasYNbNtLTityhDY=";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
imports = [
|
||||||
wofi
|
./window-manager/${profile.interface}.nix
|
||||||
waybar
|
|
||||||
grim
|
|
||||||
swaynotificationcenter
|
|
||||||
swaylock
|
|
||||||
hyprpaper
|
|
||||||
lxsession
|
|
||||||
hyprshot
|
|
||||||
wayvnc
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
withUWSM = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.nichkara = { ... }: {
|
|
||||||
home.file.".config/hypr" = {
|
|
||||||
source = dotfiles_hypr;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
60
desktop-environment/window-manager/hyprland.nix
Normal file
60
desktop-environment/window-manager/hyprland.nix
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
dotfiles_hypr = pkgs.fetchgit {
|
||||||
|
url = "https://git.nichkara.eu/dotfiles/hypr";
|
||||||
|
rev = "83da92f0d64620c6503b8b2d9fa27bd79816e025";
|
||||||
|
sha256 = "sha256-kEKJiH0oK0PuciJZ6ucinTKX5eMWxPPZXYNS1+HIcRA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dotfiles_waybar = pkgs.fetchgit {
|
||||||
|
url = "https://git.nichkara.eu/dotfiles/waybar";
|
||||||
|
rev = "47a5d2b7795fcdb26bff3a91864d19158cfc5c5c";
|
||||||
|
sha256 = "sha256-0S0S+qIEa20GWeHGEOzji6rPQPPzDvyZFpyHewLuxKw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
profile = import ../../profile.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wofi
|
||||||
|
grim
|
||||||
|
swaynotificationcenter
|
||||||
|
swaylock
|
||||||
|
hyprpaper
|
||||||
|
lxsession
|
||||||
|
hyprshot
|
||||||
|
wayvnc
|
||||||
|
pamixer
|
||||||
|
pavucontrol
|
||||||
|
brightnessctl
|
||||||
|
];
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerd-fonts.space-mono
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.${profile.username} = { ... }: {
|
||||||
|
home.file.".config/hypr" = {
|
||||||
|
source = dotfiles_hypr;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/waybar" = {
|
||||||
|
source = dotfiles_waybar;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
profile = import ./profile.nix;
|
||||||
|
home-directory = "/home/${profile.username}";
|
||||||
|
ssh-filename = "${home-directory}/.ssh/id_ed25519";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -11,17 +13,18 @@ in
|
|||||||
./system-environment/config.nix
|
./system-environment/config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.nichkara = {
|
users.users.${profile.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Nina Chloé Kassandra";
|
description = "Nina Chloé Kassandra";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp"];
|
extraGroups = [ "networkmanager" "wheel" "docker" "scanner" "lp"];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
hashedPassword = profile.hashed-password;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.backupFileExtension = "bck.lck";
|
home-manager.backupFileExtension = "bck.lck";
|
||||||
|
|
||||||
home-manager.users.nichkara = { pkgs, ... }: {
|
home-manager.users.${profile.username} = { pkgs, ... }: {
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -35,5 +38,45 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
username = "nichkara";
|
username = "nichkara";
|
||||||
hostname = "amelia";
|
hostname = "amelia";
|
||||||
hashedPassword = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
|
hashed-password = "$y$j9T$W72kGNL9hSTiN7CjnUpqH1$uyE1OzYN4kvbhhylX7pwRmLYYYmouRPVGIDZKwx8YW8";
|
||||||
interface = "hyprland";
|
interface = "hyprland";
|
||||||
modules = {
|
modules = {
|
||||||
|
base = true;
|
||||||
office = false;
|
office = false;
|
||||||
latex = false;
|
development = false;
|
||||||
mail = false;
|
science = false;
|
||||||
embedded = false;
|
|
||||||
books = false;
|
|
||||||
matrix = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,20 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
profile = import ../profile.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./file-system.nix
|
./file-system.nix
|
||||||
|
./media.nix
|
||||||
|
./security/keyring.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Make systems
|
|
||||||
gnumake
|
gnumake
|
||||||
|
python3
|
||||||
|
]
|
||||||
|
++ lib.optionals profile.modules.development [
|
||||||
cmake
|
cmake
|
||||||
cmakeCurses
|
cmakeCurses
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -1,22 +1,18 @@
|
|||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
profile = import ../profile.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
imports = [
|
||||||
vim
|
./editor.nix
|
||||||
neovim
|
|
||||||
astyle
|
|
||||||
python313Packages.pynvim
|
|
||||||
hyfetch
|
|
||||||
fzf
|
|
||||||
fzf-zsh
|
|
||||||
ripgrep
|
|
||||||
ripgrep-all
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.systemPackages = with pkgs; [
|
||||||
EDITOR = "nvim";
|
astyle
|
||||||
};
|
hyfetch
|
||||||
|
fzf-zsh
|
||||||
|
];
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -64,7 +60,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.nichkara = { ... }: {
|
home-manager.users.${profile.username} = { ... }: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
@@ -86,6 +82,24 @@
|
|||||||
ignoreAllDups = true;
|
ignoreAllDups = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
theme = "sonicradish";
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"z"
|
||||||
|
"dotenv"
|
||||||
|
"battery"
|
||||||
|
"emoji"
|
||||||
|
"emoji-clock"
|
||||||
|
"fzf"
|
||||||
|
"kitty"
|
||||||
|
"themes"
|
||||||
|
"tmux"
|
||||||
|
"vi-mode"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
setOptions = [
|
setOptions = [
|
||||||
"HIST_IGNORE_ALL_DUPS"
|
"HIST_IGNORE_ALL_DUPS"
|
||||||
];
|
];
|
||||||
|
|||||||
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