Browse Source

deploying to alastor

rework-profiles
Gauvain Roussel-Tarbouriech 11 months ago
committed by gauvain@govanify.com
parent
commit
a4f29f7e43
6 changed files with 102 additions and 2 deletions
  1. +1
    -0
      common/gaming.nix
  2. +2
    -1
      common/graphical.nix
  3. +1
    -1
      common/headfull.nix
  4. +13
    -0
      machines/alastor/default.nix
  5. +84
    -0
      machines/alastor/hardware.nix
  6. +1
    -0
      machines/alastor/wallpaper.png

+ 1
- 0
common/gaming.nix View File

@ -3,6 +3,7 @@
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
hardware.pulseaudio.support32Bit = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [


+ 2
- 1
common/graphical.nix View File

@ -23,7 +23,8 @@
# fingerprint with my configuration, but i do login on websites sometimes.
# As such tor is used as a clean cut identity that also make sure I didn't
# fuck up tracking when need happens.
firefox-wayland tor-browser-bundle-bin
firefox-wayland
#tor-browser-bundle-bin
#firefox-bin
# art
blender krita kdenlive ardour


+ 1
- 1
common/headfull.nix View File

@ -49,7 +49,7 @@
signByDefault = true;
key = "52142D39A7CEF8FA872BCA7FDE62E1E2A6145556";
};
home.file.".config/weechat".source = ./../dotfiles/weechat;
#home.file.".config/weechat".source = ./../dotfiles/weechat;
};


+ 13
- 0
machines/alastor/default.nix View File

@ -5,8 +5,12 @@
imports = [ ./hardware.nix
../../common/default.nix
../../common/tor.nix
../../common/mac.nix
#../../common/laptop.nix
../../common/gaming.nix
../../common/bluetooth.nix
../../common/headfull.nix
../../common/graphical.nix
];
networking.hostName = "alastor";
users.motd = ''
@ -31,4 +35,13 @@
"Smile, my dear! You know, you're
never fully dressed without one!"
'';
#services.macspoofer = {
# enable = true;
# interface = "wlp1s0";
# };
home-manager.users.govanify = {
home.file."Pictures/wallpaper.png".source = ./wallpaper.png;
};
}

+ 84
- 0
machines/alastor/hardware.nix View File

@ -0,0 +1,84 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub = {
enable = true;
device = "nodev";
version = 2;
efiSupport = true;
enableCryptodisk = true;
extraInitrd = /boot/initrd.keys.gz;
extraConfig = "
terminal_input at_keyboard
keymap fr
";
};
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices =
{
matrix = {
device = "/dev/disk/by-uuid/9634d799-6103-44c2-aa91-9adecf165f91";
preLVM = true;
keyFile = "/keyfile_matrix.bin";
allowDiscards = true;
};
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/dea15455-b492-4b9c-9c5f-de8ea5dc7a6b";
fsType = "ext4";
};
fileSystems."/lain" =
{ device = "/dev/disk/by-uuid/7324ad41-bd38-4516-ae7c-5570ff3da8a0";
fsType = "btrfs";
encrypted = {
enable = true;
label = "lain";
blkDev = "/dev/disk/by-uuid/11902459-0de9-44a0-99c6-1841ea7bc96d";
keyFile = "/keyfile_lain.bin";
};
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/5334-1848";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b8be1d58-dd39-454a-9754-2f23df66cd38"; }
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s20f0u2.useDHCP = true;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
console.keyMap = "fr";
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

+ 1
- 0
machines/alastor/wallpaper.png View File

@ -0,0 +1 @@
Method Not Allowed

Loading…
Cancel
Save