some updates especially to nixos
This commit is contained in:
parent
f1349e79f1
commit
08db8e3b56
12
README.org
12
README.org
|
@ -127,12 +127,13 @@ Both include the home-manager module. Primarily I chose that route so that I cou
|
||||||
** General
|
** General
|
||||||
All my machines have these settings.
|
All my machines have these settings.
|
||||||
|
|
||||||
Every machine has it's own hardware config/
|
Every machine has it's own hardware config and we'll throw in the cachix piece here too.
|
||||||
#+NAME: hardware
|
#+NAME: hardware
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
/etc/nixos/cachix.nix
|
||||||
];
|
];
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -146,9 +147,10 @@ nix = {
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
I use plasma and awesome mostly as my desktop.
|
I use plasma and awesome mostly as my desktop. Also all desktops will likely need ntfs support in order to work with windows devices.
|
||||||
#+NAME: desktop
|
#+NAME: desktop
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManager.awesome = {
|
windowManager.awesome = {
|
||||||
|
@ -267,6 +269,7 @@ killall
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
dutree
|
dutree
|
||||||
|
cachix
|
||||||
unzip
|
unzip
|
||||||
unrar
|
unrar
|
||||||
p7zip
|
p7zip
|
||||||
|
@ -276,6 +279,7 @@ usbutils
|
||||||
binutils
|
binutils
|
||||||
podman-compose
|
podman-compose
|
||||||
exa
|
exa
|
||||||
|
# img2pdf
|
||||||
yt-dlp
|
yt-dlp
|
||||||
bat
|
bat
|
||||||
rsync
|
rsync
|
||||||
|
@ -398,6 +402,7 @@ OVMFFull
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
python3
|
||||||
airshipper
|
airshipper
|
||||||
# hyprland
|
# hyprland
|
||||||
|
|
||||||
|
@ -420,6 +425,7 @@ qtcreator
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
pkg-config
|
pkg-config
|
||||||
libsForQt5.wrapQtAppsHook
|
libsForQt5.wrapQtAppsHook
|
||||||
|
python310Packages.pyqt5
|
||||||
# LIBRARIES FOR DEV
|
# LIBRARIES FOR DEV
|
||||||
qt5.full
|
qt5.full
|
||||||
qt5.qtbase
|
qt5.qtbase
|
||||||
|
@ -649,7 +655,7 @@ Notice how I am including all of my software here. It may be a big file, but hav
|
||||||
];
|
];
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = false;
|
||||||
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
|
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1663219003,
|
"lastModified": 1663242403,
|
||||||
"narHash": "sha256-g+FkhLtjjWJss6mUkWYxeI1kSd1ytd7gdThm3v2bRuw=",
|
"narHash": "sha256-Y0gpc46wE6nqp0Viv6qRK+lCBnwrrqkl3MmDGKVSH4A=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "e6e2da01c61c6ee0a95ea3ecc2fe4d751caa4554",
|
"rev": "6d21d47c97f12d1dcb7d1726a9a4ae22aad11442",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
currentdir=$(pwd)
|
currentdir=$(pwd)
|
||||||
cd ~/.dotfiles
|
cd ~/.dotfiles
|
||||||
nixos-rebuild --use-remote-sudo switch --verbose --flake .#
|
nixos-rebuild --use-remote-sudo switch --verbose --impure --flake .#
|
||||||
cd $currentdir
|
cd $currentdir
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
/etc/nixos/cachix.nix
|
||||||
];
|
];
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
@ -62,6 +63,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManager.awesome = {
|
windowManager.awesome = {
|
||||||
|
@ -169,6 +171,7 @@
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
dutree
|
dutree
|
||||||
|
cachix
|
||||||
unzip
|
unzip
|
||||||
unrar
|
unrar
|
||||||
p7zip
|
p7zip
|
||||||
|
@ -178,6 +181,7 @@
|
||||||
binutils
|
binutils
|
||||||
podman-compose
|
podman-compose
|
||||||
exa
|
exa
|
||||||
|
# img2pdf
|
||||||
yt-dlp
|
yt-dlp
|
||||||
bat
|
bat
|
||||||
rsync
|
rsync
|
||||||
|
@ -295,6 +299,7 @@
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
python3
|
||||||
airshipper
|
airshipper
|
||||||
# hyprland
|
# hyprland
|
||||||
|
|
||||||
|
@ -319,6 +324,7 @@
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
pkg-config
|
pkg-config
|
||||||
libsForQt5.wrapQtAppsHook
|
libsForQt5.wrapQtAppsHook
|
||||||
|
python310Packages.pyqt5
|
||||||
# LIBRARIES FOR DEV
|
# LIBRARIES FOR DEV
|
||||||
qt5.full
|
qt5.full
|
||||||
qt5.qtbase
|
qt5.qtbase
|
||||||
|
|
13
system/syl/cachix.nix
Normal file
13
system/syl/cachix.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
# WARN: this file will get overwritten by $ cachix use <name>
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
folder = ./cachix;
|
||||||
|
toImport = name: value: folder + ("/" + name);
|
||||||
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
|
||||||
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
||||||
|
in {
|
||||||
|
inherit imports;
|
||||||
|
nix.settings.substituters = ["https://cache.nixos.org/"];
|
||||||
|
}
|
11
system/syl/cachix/nix-community.nix
Normal file
11
system/syl/cachix/nix-community.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
nix = {
|
||||||
|
settings.substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
];
|
||||||
|
settings.trusted-public-keys = [
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
/etc/nixos/cachix.nix
|
||||||
];
|
];
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
@ -60,6 +61,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManager.awesome = {
|
windowManager.awesome = {
|
||||||
|
@ -182,6 +184,7 @@
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
dutree
|
dutree
|
||||||
|
cachix
|
||||||
unzip
|
unzip
|
||||||
unrar
|
unrar
|
||||||
p7zip
|
p7zip
|
||||||
|
@ -191,6 +194,7 @@
|
||||||
binutils
|
binutils
|
||||||
podman-compose
|
podman-compose
|
||||||
exa
|
exa
|
||||||
|
# img2pdf
|
||||||
yt-dlp
|
yt-dlp
|
||||||
bat
|
bat
|
||||||
rsync
|
rsync
|
||||||
|
@ -308,6 +312,7 @@
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
python3
|
||||||
airshipper
|
airshipper
|
||||||
# hyprland
|
# hyprland
|
||||||
|
|
||||||
|
@ -334,6 +339,7 @@
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
pkg-config
|
pkg-config
|
||||||
libsForQt5.wrapQtAppsHook
|
libsForQt5.wrapQtAppsHook
|
||||||
|
python310Packages.pyqt5
|
||||||
# LIBRARIES FOR DEV
|
# LIBRARIES FOR DEV
|
||||||
qt5.full
|
qt5.full
|
||||||
qt5.qtbase
|
qt5.qtbase
|
||||||
|
@ -385,7 +391,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = false;
|
||||||
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
|
package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue