config workstation as a builder
bugfix: .bashrc dirs rename more bugfixx sdksa
This commit is contained in:
parent
81a348a442
commit
3bce82d841
@ -164,14 +164,14 @@ nix = let featuresList = [
|
|||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
# buildMachines = [ {
|
buildMachines = [ {
|
||||||
# hostName = "workstation";
|
hostName = "workstation";
|
||||||
# system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# sshUser = "nixremote";
|
sshUser = "nixremote";
|
||||||
# maxJobs = 4;
|
maxJobs = 14;
|
||||||
# speedFactor = 1;
|
speedFactor = 1;
|
||||||
# supportedFeatures = featuresList;
|
supportedFeatures = featuresList;
|
||||||
# } ];
|
} ];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
settings = {
|
settings = {
|
||||||
cores = 6;
|
cores = 6;
|
||||||
@ -238,6 +238,10 @@ into "Too many files open" errors.
|
|||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
security = {
|
security = {
|
||||||
|
acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = myEmail;
|
||||||
|
};
|
||||||
rtkit.enable = true;
|
rtkit.enable = true;
|
||||||
sudo = {
|
sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -294,7 +298,7 @@ users = {
|
|||||||
group = "nixremote";
|
group = "nixremote";
|
||||||
home = "/var/nixremote/";
|
home = "/var/nixremote/";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICiyTwryzw8CblPldplDpVUkXD9C1fXVgO8LeXdE5cuR root@battlestation"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN6HsajaTL+nTJtSIu00M5WJwgt/7fyU59gBr2R7tbnv root@server"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -306,8 +310,9 @@ users.users.jawz = {
|
|||||||
];
|
];
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
openssh = {
|
openssh = {
|
||||||
authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES"
|
authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDXxfFRSgII4w/S1mrekPQdfXNifqRxwJa0wpQo72wB jawz@workstation";
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDXxfFRSgII4w/S1mrekPQdfXNifqRxwJa0wpQo72wB jawz@workstation"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -332,6 +337,30 @@ packages on the previous section.
|
|||||||
|
|
||||||
=note= exa is no longer maintained, and will soon be replaced by eza, a maintained
|
=note= exa is no longer maintained, and will soon be replaced by eza, a maintained
|
||||||
fork.
|
fork.
|
||||||
|
|
||||||
|
** HUNSPELL
|
||||||
|
These dictionaries work with Firefox, Doom Emacs and LibreOffice.
|
||||||
|
|
||||||
|
#+begin_src nix
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.it_IT
|
||||||
|
hunspellDicts.es_MX
|
||||||
|
hunspellDicts.en_CA
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** CUSTOMIZATION PACKAGES
|
||||||
|
Themes and other customization, making my DE look the way I want is one of the
|
||||||
|
main draws of Linux for me.
|
||||||
|
|
||||||
|
#+begin_src nix
|
||||||
|
# Fonts
|
||||||
|
(nerdfonts.override {
|
||||||
|
fonts = [ "Agave" "CascadiaCode" "SourceCodePro"
|
||||||
|
"Ubuntu" "FiraCode" "Iosevka" ];
|
||||||
|
})
|
||||||
|
symbola
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** COMMAND-LINE PACKAGES
|
** COMMAND-LINE PACKAGES
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
@ -470,29 +499,6 @@ Mostly language servers and linters.
|
|||||||
pnpm # Package manager
|
pnpm # Package manager
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** HUNSPELL
|
|
||||||
These dictionaries work with Firefox, Doom Emacs and LibreOffice.
|
|
||||||
|
|
||||||
#+begin_src nix
|
|
||||||
hunspell
|
|
||||||
hunspellDicts.it_IT
|
|
||||||
hunspellDicts.es_MX
|
|
||||||
hunspellDicts.en_CA
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** CUSTOMIZATION PACKAGES
|
|
||||||
Themes and other customization, making my DE look the way I want is one of the
|
|
||||||
main draws of Linux for me.
|
|
||||||
|
|
||||||
#+begin_src nix
|
|
||||||
# Fonts
|
|
||||||
(nerdfonts.override {
|
|
||||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro"
|
|
||||||
"Ubuntu" "FiraCode" "Iosevka" ];
|
|
||||||
})
|
|
||||||
symbola
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** CLOSING USER PACKAGES
|
** CLOSING USER PACKAGES
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
@ -565,8 +571,8 @@ programs.bash = {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
nixos-reload () {
|
nixos-reload () {
|
||||||
nixfmt /home/jawz/Development/NixOS/workstation/*.nix
|
nixfmt /home/jawz/Development/NixOS/server/*.nix
|
||||||
sudo nixos-rebuild switch -I nixos-config=/home/jawz/Development/NixOS/workstation/configuration.nix
|
sudo nixos-rebuild switch -I nixos-config=/home/jawz/Development/NixOS/server/configuration.nix
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,14 +1,4 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
{ config, lib, pkgs, modulesPath, ... }: {
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
unstable = import
|
|
||||||
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
|
|
||||||
config = config.nixpkgs.config;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
boot = {
|
boot = {
|
||||||
#plymouth = { enable = true; };
|
#plymouth = { enable = true; };
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
localhost = "127.0.0.1";
|
localhost = "127.0.0.1";
|
||||||
battlestation = "192.168.1.64";
|
battlestation = "192.168.1.64";
|
||||||
|
|||||||
@ -364,6 +364,37 @@ Begin the block to install user packages.
|
|||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** HUNSPELL
|
||||||
|
These dictionaries are compatible with Firefox, Doom Emacs and LibreOffice.
|
||||||
|
|
||||||
|
#+begin_src nix
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.it_IT
|
||||||
|
hunspellDicts.es_MX
|
||||||
|
hunspellDicts.en_CA
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** CUSTOMIZATION PACKAGES
|
||||||
|
Themes and other customization, making my DE look the way I want is one of the
|
||||||
|
main draws of Linux for me.
|
||||||
|
|
||||||
|
#+begin_src nix
|
||||||
|
# Themes
|
||||||
|
adw-gtk3
|
||||||
|
gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
||||||
|
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
||||||
|
|
||||||
|
# Fonts
|
||||||
|
(nerdfonts.override {
|
||||||
|
fonts = [ "Agave" "CascadiaCode" "SourceCodePro"
|
||||||
|
"Ubuntu" "FiraCode" "Iosevka" ];
|
||||||
|
})
|
||||||
|
symbola
|
||||||
|
(papirus-icon-theme.override {
|
||||||
|
color = "adwaita";
|
||||||
|
})
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** GUI PACKAGES
|
** GUI PACKAGES
|
||||||
All of my GUI applications categorized to make it easier to identify what each
|
All of my GUI applications categorized to make it easier to identify what each
|
||||||
application does, and the justification for is existence on my system.
|
application does, and the justification for is existence on my system.
|
||||||
@ -633,42 +664,12 @@ Mostly language servers and linters.
|
|||||||
pnpm # Package manager
|
pnpm # Package manager
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** HUNSPELL
|
|
||||||
These dictionaries are compatible with Firefox, Doom Emacs and LibreOffice.
|
|
||||||
|
|
||||||
#+begin_src nix
|
|
||||||
hunspell
|
|
||||||
hunspellDicts.it_IT
|
|
||||||
hunspellDicts.es_MX
|
|
||||||
hunspellDicts.en_CA
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** CUSTOMIZATION PACKAGES
|
|
||||||
Themes and other customization, making my DE look the way I want is one of the
|
|
||||||
main draws of Linux for me.
|
|
||||||
|
|
||||||
#+begin_src nix
|
|
||||||
# Themes
|
|
||||||
adw-gtk3
|
|
||||||
gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
|
||||||
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
|
||||||
|
|
||||||
# Fonts
|
|
||||||
(nerdfonts.override {
|
|
||||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro"
|
|
||||||
"Ubuntu" "FiraCode" "Iosevka" ];
|
|
||||||
})
|
|
||||||
symbola
|
|
||||||
(papirus-icon-theme.override {
|
|
||||||
color = "adwaita";
|
|
||||||
})
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** GNOME EXTENSIONS
|
** GNOME EXTENSIONS
|
||||||
The last line can be commented to allow for the installation of gnome-extensions
|
The last line can be commented to allow for the installation of gnome-extensions
|
||||||
from the unstable channel.
|
from the unstable channel.
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
|
]) ++ (with pkgs; [
|
||||||
# lm_sensors # for extension, displays cpu temp
|
# lm_sensors # for extension, displays cpu temp
|
||||||
libgda # for pano shell extension
|
libgda # for pano shell extension
|
||||||
]) ++ (with pkgs.gnomeExtensions; [
|
]) ++ (with pkgs.gnomeExtensions; [
|
||||||
@ -763,9 +764,9 @@ programs.bash = {
|
|||||||
nixos-reload () {
|
nixos-reload () {
|
||||||
NIXOSDIR=/home/jawz/Development/NixOS
|
NIXOSDIR=/home/jawz/Development/NixOS
|
||||||
nix-store --add-fixed sha256 $NIXOSDIR/scripts/PureRef-1.11.1_x64.Appimage
|
nix-store --add-fixed sha256 $NIXOSDIR/scripts/PureRef-1.11.1_x64.Appimage
|
||||||
nixfmt $NIXOSDIR/battlestation/*.nix
|
nixfmt $NIXOSDIR/workstation/*.nix
|
||||||
sudo unbuffer nixos-rebuild switch -I \
|
sudo unbuffer nixos-rebuild switch -I \
|
||||||
nixos-config=$NIXOSDIR/battlestation/configuration.nix \
|
nixos-config=$NIXOSDIR/workstation/configuration.nix \
|
||||||
|& nom
|
|& nom
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user