mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
fix nixos
This commit is contained in:
parent
7dd55fbbc6
commit
dbc19402d9
10 changed files with 46 additions and 27 deletions
|
@ -29,7 +29,7 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit pkgs; inputs = { inherit (inputs); };
|
inherit pkgs;
|
||||||
nurNoPkgs = import nur {
|
nurNoPkgs = import nur {
|
||||||
nurpkgs = pkgs;
|
nurpkgs = pkgs;
|
||||||
pkgs = throw "nixpkgs eval";
|
pkgs = throw "nixpkgs eval";
|
||||||
|
@ -56,12 +56,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixosConfigurations.zeus-utm-vm = (pkgsfunc "aarch64-linux").lib.nixosSystem rec {
|
nixosConfigurations.zeus-utm-vm = nixpkgs.lib.nixosSystem rec {
|
||||||
inherit inputs;
|
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
|
|
||||||
pkgs = pkgsfunc system;
|
pkgs = pkgsfunc system;
|
||||||
|
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./modules/nix.nix
|
./modules/nix.nix
|
||||||
./system/utm-arm-vm.nix
|
./system/utm-arm-vm.nix
|
||||||
|
|
|
@ -20,11 +20,13 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ./launchd.nix ./iterm2.nix ./finder.nix ];
|
imports = [ ./launchd.nix ./iterm2.nix ./finder.nix ];
|
||||||
|
|
||||||
home.file.".gnupg/gpg-agent.conf".text = mkIf stdenv.isDarwin ''
|
home.file.".gnupg/gpg-agent.conf" = mkIf stdenv.isDarwin {
|
||||||
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"
|
text = ''
|
||||||
default-cache-ttl 30
|
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"
|
||||||
max-cache-ttl 600
|
default-cache-ttl 30
|
||||||
'';
|
max-cache-ttl 600
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin {
|
home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin {
|
||||||
executable = true;
|
executable = true;
|
||||||
|
@ -44,7 +46,7 @@ in
|
||||||
programs.firefox.package = mkIf stdenv.isDarwin pkgs.firefox-mac;
|
programs.firefox.package = mkIf stdenv.isDarwin pkgs.firefox-mac;
|
||||||
programs.chromium.package = mkIf stdenv.isDarwin pkgs.chromium-mac;
|
programs.chromium.package = mkIf stdenv.isDarwin pkgs.chromium-mac;
|
||||||
|
|
||||||
targets.darwin = {
|
targets.darwin = mkIf stdenv.isDarwin {
|
||||||
defaults = {
|
defaults = {
|
||||||
NSGlobalDomain = {
|
NSGlobalDomain = {
|
||||||
AppleLanguages = [ "en-CA" ];
|
AppleLanguages = [ "en-CA" ];
|
||||||
|
|
|
@ -43,5 +43,10 @@ rec {
|
||||||
username = "willem";
|
username = "willem";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ ./emacs.nix ./packages.nix ./programs.nix ./darwin.nix ];
|
imports = [
|
||||||
|
./darwin.nix
|
||||||
|
./emacs.nix
|
||||||
|
./packages.nix
|
||||||
|
./programs.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
columnSettings = {
|
columnSettings = {
|
||||||
name = {
|
name = {
|
||||||
|
@ -84,7 +85,7 @@ let
|
||||||
} // default-view-settings;
|
} // default-view-settings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
targets.darwin.defaults."com.apple.finder" = {
|
targets.darwin.defaults."com.apple.finder" = lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
AppleShowAllExtensions = true;
|
AppleShowAllExtensions = true;
|
||||||
|
|
||||||
ComputerViewSettings = dvs-with-ws;
|
ComputerViewSettings = dvs-with-ws;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
dracula_plus = {
|
dracula_plus = {
|
||||||
"Ansi 0 Color" = {
|
"Ansi 0 Color" = {
|
||||||
|
@ -228,7 +230,7 @@ let
|
||||||
} // dracula_plus;
|
} // dracula_plus;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
targets.darwin.defaults."com.googlecode.iterm2" = {
|
targets.darwin.defaults."com.googlecode.iterm2" = lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
"AlternateMouseScroll" = true;
|
"AlternateMouseScroll" = true;
|
||||||
"Default Bookmark Guid" = "30FFD0AB-B2EB-4635-9469-D089C1D9E106";
|
"Default Bookmark Guid" = "30FFD0AB-B2EB-4635-9469-D089C1D9E106";
|
||||||
"HotkeyMigratedFromSingleToMulti" = true;
|
"HotkeyMigratedFromSingleToMulti" = true;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
darwin = with pkgs; [ ];
|
darwin = with pkgs; [ ];
|
||||||
linux = with pkgs; [ vlc qbittorrent freecad spotify ];
|
linux = with pkgs; [ ];
|
||||||
pass-extended = pkgs.pass.withExtensions (exts: [ exts.pass-genphrase exts.pass-otp exts.pass-import ]);
|
pass-extended = pkgs.pass.withExtensions (exts: [ exts.pass-genphrase exts.pass-otp exts.pass-import ]);
|
||||||
python-wp = pkgs.python310.withPackages (p: with p; [ setuptools pyaml requests latexify-py ]);
|
python-wp = pkgs.python310.withPackages (p: with p; [ setuptools pyaml requests latexify-py ]);
|
||||||
node-packages = with pkgs.nodePackages; [ bash-language-server ];
|
node-packages = with pkgs.nodePackages; [ bash-language-server ];
|
||||||
|
@ -20,7 +20,6 @@ in
|
||||||
cmake
|
cmake
|
||||||
comma
|
comma
|
||||||
curl
|
curl
|
||||||
discord
|
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
fd
|
fd
|
||||||
|
@ -40,7 +39,6 @@ in
|
||||||
openssh
|
openssh
|
||||||
pass-extended
|
pass-extended
|
||||||
plantuml
|
plantuml
|
||||||
pngpaste
|
|
||||||
poppler
|
poppler
|
||||||
pv
|
pv
|
||||||
python-wp
|
python-wp
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
environment.systemPackages = [ pkgs.coreutils-full ];
|
||||||
environment.variables.SHELL = "${pkgs.zsh}/bin/zsh";
|
environment.variables.SHELL = "${pkgs.zsh}/bin/zsh";
|
||||||
environment.variables.LANG = "en_US.UTF-8";
|
environment.variables.LANG = "en_US.UTF-8";
|
||||||
|
|
||||||
|
@ -13,8 +14,6 @@
|
||||||
settings.trusted-users = [ "root" "willem" ];
|
settings.trusted-users = [ "root" "willem" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash.enable = true;
|
|
||||||
|
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = true;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
@ -35,5 +34,5 @@
|
||||||
|
|
||||||
time.timeZone = "America/Vancouver";
|
time.timeZone = "America/Vancouver";
|
||||||
|
|
||||||
users.users.willem.shell = pkgs.zshInteractive;
|
users.users.willem.shell = pkgs.zsh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,13 +19,14 @@
|
||||||
environment.loginShell = "${pkgs.zsh}/bin/zsh -l";
|
environment.loginShell = "${pkgs.zsh}/bin/zsh -l";
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
colima
|
colima
|
||||||
coreutils
|
|
||||||
darwin-zsh-completions
|
darwin-zsh-completions
|
||||||
|
discord
|
||||||
freecad-mac
|
freecad-mac
|
||||||
gnused
|
gnused
|
||||||
iterm2
|
iterm2
|
||||||
pinentry-touchid
|
pinentry-touchid
|
||||||
pinentry-mac
|
pinentry-mac
|
||||||
|
pngpaste
|
||||||
qbittorrent-mac
|
qbittorrent-mac
|
||||||
spoof-mac
|
spoof-mac
|
||||||
spotify-mac
|
spotify-mac
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.bash.enable = true;
|
||||||
|
|
||||||
programs.man.enable = true;
|
programs.man.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
imports = [ ./common.nix ];
|
imports = [ ./common.nix ];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -6,9 +8,18 @@
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
|
||||||
console.keyMap = "colemak";
|
console.keyMap = "colemak";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
freecad
|
||||||
|
pinentry-gnome
|
||||||
|
qbittorrent
|
||||||
|
vlc
|
||||||
|
];
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
programs.command-not-found.enable = false;
|
||||||
|
|
||||||
programs.zsh.loginShellInit = ''
|
programs.zsh.loginShellInit = ''
|
||||||
reexec() {
|
reexec() {
|
||||||
unset __NIX_OS_SET_ENVIRONMENT_DONE
|
unset __NIX_OS_SET_ENVIRONMENT_DONE
|
||||||
|
@ -26,16 +37,16 @@
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
services.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
displayManager.gdm.enable = true;
|
displayManager.gdm.enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbVariant = "colemak";
|
xkbVariant = "colemak";
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.useDHCP = true;
|
|
||||||
|
|
||||||
services.spice-vdagentd.enable = true;
|
services.spice-vdagentd.enable = true;
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue