From 270f385c72beea35d797d807c28a08811ebb614b Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 12 Jan 2017 22:21:21 +0100 Subject: nin: init --- nin/1systems/hiawatha.nix | 125 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 nin/1systems/hiawatha.nix (limited to 'nin/1systems') diff --git a/nin/1systems/hiawatha.nix b/nin/1systems/hiawatha.nix new file mode 100644 index 000000000..26de00d18 --- /dev/null +++ b/nin/1systems/hiawatha.nix @@ -0,0 +1,125 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, lib, pkgs, ... }: + +with lib; + +{ + imports = [ + ../. + + ../2configs/retiolum.nix + ]; + + krebs.build.host = config.krebs.hosts.hiawatha; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/b83f8830-84f3-4282-b10e-015c4b76bd9e"; + fsType = "ext4"; + }; + + fileSystems."/tmp" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/2f319b08-2560-401d-b53c-2abd28f1a010"; + fsType = "ext2"; + }; + + boot.initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; } ]; + boot.initrd.luks.cryptoModules = [ "aes" "sha512" "sha1" "xts" ]; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 4; + # Use the GRUB 2 boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + # Define on which hard drive you want to install Grub. + boot.loader.grub.device = "/dev/sda"; + + # Enable the OpenSSH daemon. + services.openssh.enable = true; + + # Enable CUPS to print documents. + # services.printing.enable = true; + + fileSystems."/home/nin/.local/share/Steam" = { + device = "/dev/fam/steam"; + }; + + # nin config + time.timeZone = "Europe/Berlin"; + services.xserver.enable = true; + + networking.networkmanager.enable = true; + #networking.wireless.enable = true; + + hardware.pulseaudio = { + enable = true; + systemWide = true; + }; + + hardware.bluetooth.enable = true; + + hardware.opengl.driSupport32Bit = true; + + #nixpkgs.config.steam.java = true; + + environment.variables.EDITOR = mkForce "vim"; + environment.variables.VIMINIT = ":so /etc/vimrc"; + environment.etc.vimrc.source = pkgs.writeText "vimrc" '' + set nocp + ''; + + environment.systemPackages = with pkgs; [ + firefox + steam + thunderbird + vim + git + hexchat + networkmanagerapplet + ]; + + nixpkgs.config = { + + allowUnfree = true; + + firefox = { + enableGoogleTalkPlugin = true; + enableAdobeFlash = true; + }; + }; + + #services.logind.extraConfig = "HandleLidSwitch=ignore"; + + services.xserver.synaptics = { + enable = true; + }; + + + services.xserver.desktopManager.xfce = let + xbindConfig = pkgs.writeText "xbindkeysrc" '' + "${pkgs.pass}/bin/passmenu --type" + Control + p + ''; + in { + enable = true; + extraSessionCommands = '' + ${pkgs.xbindkeys}/bin/xbindkeys -f ${xbindConfig} + ''; + }; + + # The NixOS release to be compatible with for stateful data such as databases. + system.stateVersion = "17.03"; + +} -- cgit v1.2.3 From ed8281aaf5ff94223b1773f5da483f893a70026c Mon Sep 17 00:00:00 2001 From: nin Date: Sun, 15 Jan 2017 19:54:54 +0100 Subject: n 2: add vim.nix --- nin/1systems/hiawatha.nix | 6 ------ 1 file changed, 6 deletions(-) (limited to 'nin/1systems') diff --git a/nin/1systems/hiawatha.nix b/nin/1systems/hiawatha.nix index 26de00d18..ca7071408 100644 --- a/nin/1systems/hiawatha.nix +++ b/nin/1systems/hiawatha.nix @@ -74,12 +74,6 @@ with lib; #nixpkgs.config.steam.java = true; - environment.variables.EDITOR = mkForce "vim"; - environment.variables.VIMINIT = ":so /etc/vimrc"; - environment.etc.vimrc.source = pkgs.writeText "vimrc" '' - set nocp - ''; - environment.systemPackages = with pkgs; [ firefox steam -- cgit v1.2.3 From af0a1c92c80e4b5d9c63bff4e075cfae0e3587b9 Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 19 Jan 2017 23:16:40 +0100 Subject: n 1: add onondaga --- nin/1systems/onondaga.nix | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 nin/1systems/onondaga.nix (limited to 'nin/1systems') diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix new file mode 100644 index 000000000..f7518aa6b --- /dev/null +++ b/nin/1systems/onondaga.nix @@ -0,0 +1,83 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, lib, pkgs, ... }: + +{ + imports = [ + ../. + + ../2configs/retiolum.nix + ]; + + krebs.build.host = config.krebs.hosts.hiawatha; + + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + # boot.loader.grub.efiSupport = true; + # boot.loader.grub.efiInstallAsRemovable = true; + # boot.loader.efi.efiSysMountPoint = "/boot/efi"; + # Define on which hard drive you want to install Grub. + boot.loader.grub.device = "/dev/sda"; + + networking.hostName = "onondaga"; + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + + # Select internationalisation properties. + # i18n = { + # consoleFont = "Lat2-Terminus16"; + # consoleKeyMap = "us"; + # defaultLocale = "en_US.UTF-8"; + # }; + + # Set your time zone. + time.timeZone = "Europe/Amsterdam"; + + # List packages installed in system profile. To search by name, run: + # $ nix-env -qaP | grep wget + # environment.systemPackages = with pkgs; [ + # wget + # ]; + + # List services that you want to enable: + + # Enable the OpenSSH daemon. + services.openssh.enable = true; + + # Enable CUPS to print documents. + # services.printing.enable = true; + + # Enable the X11 windowing system. + # services.xserver.enable = true; + # services.xserver.layout = "us"; + # services.xserver.xkbOptions = "eurosign:e"; + + # Enable the KDE Desktop Environment. + # services.xserver.displayManager.kdm.enable = true; + # services.xserver.desktopManager.kde4.enable = true; + + # Define a user account. Don't forget to set a password with ‘passwd’. + # users.extraUsers.guest = { + # isNormalUser = true; + # uid = 1000; + # }; + + # The NixOS release to be compatible with for stateful data such as databases. + system.stateVersion = "16.09"; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "ehci_pci" "sd_mod" "sr_mod" ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/7238cc6e-4bea-4e52-9408-32d8aa05abff"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/5e923175-854b-4bcf-97c8-f3a91806fa22"; + fsType = "ext2"; + }; + + nix.maxJobs = lib.mkDefault 1; + +} -- cgit v1.2.3 From dada3d5b2403c59d1886901974d54c65e0e9e5ae Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 19 Jan 2017 23:18:09 +0100 Subject: n 1 hiawatha: add some pkgs --- nin/1systems/hiawatha.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nin/1systems') diff --git a/nin/1systems/hiawatha.nix b/nin/1systems/hiawatha.nix index ca7071408..6fa8a3388 100644 --- a/nin/1systems/hiawatha.nix +++ b/nin/1systems/hiawatha.nix @@ -82,6 +82,9 @@ with lib; git hexchat networkmanagerapplet + python + virtmanager + libvirt ]; nixpkgs.config = { -- cgit v1.2.3 From 2a34bf50e7e41554af6a74e1b29081924d22cac8 Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 19 Jan 2017 23:36:49 +0100 Subject: n 1 onondaga: fix build host --- nin/1systems/onondaga.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nin/1systems') diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix index f7518aa6b..b0810366a 100644 --- a/nin/1systems/onondaga.nix +++ b/nin/1systems/onondaga.nix @@ -11,7 +11,7 @@ ../2configs/retiolum.nix ]; - krebs.build.host = config.krebs.hosts.hiawatha; + krebs.build.host = config.krebs.hosts.onondaga; boot.loader.grub.enable = true; boot.loader.grub.version = 2; -- cgit v1.2.3 From f017017d58da0da3a745aabee23d05f2278e204d Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 19 Jan 2017 23:37:26 +0100 Subject: n 1 onondaga: delete redundant hostname --- nin/1systems/onondaga.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'nin/1systems') diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix index b0810366a..92f316f66 100644 --- a/nin/1systems/onondaga.nix +++ b/nin/1systems/onondaga.nix @@ -21,7 +21,6 @@ # Define on which hard drive you want to install Grub. boot.loader.grub.device = "/dev/sda"; - networking.hostName = "onondaga"; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Select internationalisation properties. -- cgit v1.2.3 From 531807ece890f1d857304a86837ae4bc1f27076e Mon Sep 17 00:00:00 2001 From: nin Date: Fri, 20 Jan 2017 00:04:09 +0100 Subject: n 1 onondaga: import weechat.nix --- nin/1systems/onondaga.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nin/1systems') diff --git a/nin/1systems/onondaga.nix b/nin/1systems/onondaga.nix index 92f316f66..59f26c46b 100644 --- a/nin/1systems/onondaga.nix +++ b/nin/1systems/onondaga.nix @@ -9,6 +9,7 @@ ../. ../2configs/retiolum.nix + ../2configs/weechat.nix ]; krebs.build.host = config.krebs.hosts.onondaga; -- cgit v1.2.3