From 524eb6ac9f85a1f1c83563cc81aa5a61231f9409 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Tue, 11 Nov 2025 20:47:50 -0500 Subject: [PATCH] someone elses config? --- configuration.nix | 14 ++++++++++++- flake.lock | 48 ++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 47 +++++++++++++++++++++++++++++++------------ vm-configuration.nix | 37 ++++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+), 14 deletions(-) create mode 100644 flake.lock create mode 100644 vm-configuration.nix diff --git a/configuration.nix b/configuration.nix index af862ee..fe68447 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,7 +7,7 @@ { imports = [ # Include the results of the hardware scan. - ./hardware-configuration.nix + /etc/nixos/hardware-configuration.nix ]; @@ -200,5 +200,17 @@ # security.pki.certificateFiles = [ /etc/nixos/certs/ipa-ca.crt ]; + programs.hyprland = { + enable = true; + withUWSM = true; # Recommended for NixOS 24.11+ + xwayland.enable = true; + }; + # Enable necessary services + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-hyprland + ]; + }; } diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d30cbcb --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1762787259, + "narHash": "sha256-t2U/GLLXHa2+kJkwnFNRVc2fEJ/lUfyZXBE5iKzJdcs=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "37a3d97f2873e0f68711117c34d04b7c7ead8f4e", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1762596750, + "narHash": "sha256-rXXuz51Bq7DHBlfIjN7jO8Bu3du5TV+3DSADBX7/9YQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b6a8526db03f735b89dd5ff348f53f752e7ddc8e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index ce2f3d7..4c55c86 100644 --- a/flake.nix +++ b/flake.nix @@ -1,26 +1,47 @@ { - description = "My hyprland configuration"; + description = "FrostPhoenix's nixos configuration"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nur.url = "github:nix-community/NUR"; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nix-gaming.url = "github:fufexan/nix-gaming"; + nix-flatpak.url = "github:gmodena/nix-flatpak"; + + nix-index-database = { + url = "github:nix-community/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + maple-mono = { + url = "github:subframe7536/maple-font/variable"; + flake = false; + }; + + superfile.url = "github:yorukot/superfile"; + vicinae.url = "github:vicinaehq/vicinae"; + zen-browser.url = "github:0xc000022070/zen-browser-flake/beta"; }; outputs = { self, nixpkgs, home-manager, ... }: { - nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - ./configuration.nix - home-manager.nixosModules.home-manager - { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.users.yourusername = import ./home.nix; - } - ]; + nixosConfigurations = { + yourhostname = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.yourusername = import ./home.nix; + } + ]; + }; }; }; -} +}` diff --git a/vm-configuration.nix b/vm-configuration.nix new file mode 100644 index 0000000..e4d4397 --- /dev/null +++ b/vm-configuration.nix @@ -0,0 +1,37 @@ +{ config, pkgs, ... }: +{ + imports = [ ./configuration.nix ]; + + # VM-specific settings + virtualisation = { + memorySize = 4096; + cores = 4; + graphics = true; + resolution = { x = 1920; y = 1080; }; + }; + + # Enable Hyprland for testing + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; + + # Minimal desktop setup + services.displayManager.sddm = { + enable = true; + wayland.enable = true; + }; + + # Add a test user + users.users.testuser = { + isNormalUser = true; + password = "test"; + extraGroups = [ "wheel" ]; + }; + + # Enable auto-login for testing + services.displayManager.autoLogin = { + enable = true; + user = "l-wyatt"; + }; +}