nice root shell

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-03 15:41:51 +02:00
parent 6ea6fbaa9c
commit 1d438b291d
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
4 changed files with 32 additions and 7 deletions

View File

@ -377,11 +377,11 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1722536391,
"narHash": "sha256-LAL00y8IMU1I2IMTy4q8vlBW+hS6ulElh1kX+CWJgSo=",
"lastModified": 1722691995,
"narHash": "sha256-TWpmjsNJN75sHfAfsFTlhSl2t5ZQtoRTthu2XfaFnpw=",
"owner": "ivandimitrov8080",
"repo": "flake-ide",
"rev": "24a89c8ed56a635683decec0e0d43b132c404150",
"rev": "c3a2cc3f24a854ad91513f1692607764ee9e6b8e",
"type": "github"
},
"original": {

View File

@ -111,9 +111,6 @@ toplevel@{ moduleWithSystem, ... }: {
ls = "eza";
la = "eza --all";
lt = "eza --git-ignore --all --tree --level=10";
torrent = "transmission-remote";
torrent-start = "transmission-daemon";
vi = "nvim";
sc = "systemctl";
neofetch = "${pkgs.fastfetch}/bin/fastfetch -c all.jsonc";
};

View File

@ -3,7 +3,7 @@ let
system = "x86_64-linux";
mods = toplevel.config.flake.nixosModules;
hardwareConfigurations = toplevel.config.flake.hardwareConfigurations;
essential = with mods; [ grub base security wireless wireguard ];
essential = with mods; [ grub base shell security wireless wireguard ];
desktop = with mods; [ sound wayland ];
configWithModules = { hardware, modules }: withSystem system (ctx@{ config, inputs', pkgs, ... }: inputs.nixpkgs.lib.nixosSystem {
specialArgs = {

View File

@ -31,6 +31,34 @@ top@{ inputs, moduleWithSystem, ... }: {
};
networking = { stevenBlackHosts = { enable = true; blockFakenews = true; blockGambling = true; blockSocial = true; }; };
});
shell = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {
programs = {
starship.enable = true;
zsh = {
enableBashCompletion = true;
syntaxHighlighting.enable = true;
autosuggestions = {
enable = true;
strategy = [ "completion" ];
};
shellAliases = {
cal = "cal $(date +%Y)";
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD";
gad = "git add . && git diff --cached";
gac = "ga && gc";
ga = "git add .";
gc = "git commit";
dev = "nix develop --command $SHELL";
eza = "${pkgs.eza}/bin/eza '--long' '--header' '--icons' '--smart-group' '--mounts' '--octal-permissions' '--git'";
ls = "eza";
la = "eza --all";
lt = "eza --git-ignore --all --tree --level=10";
sc = "systemctl";
neofetch = "${pkgs.fastfetch}/bin/fastfetch -c all.jsonc";
};
};
};
});
sound = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {
services = { pipewire = { enable = true; alsa.enable = true; pulse.enable = true; }; };
environment.systemPackages = with pkgs; [ pwvucontrol ];